Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I am Using the program eclipse for this code but im using JavaFX SE 350 Lab 2: Christopher Columbus Sails the Ocean Blue Objective Christopher

I am Using the program eclipse for this code but im using JavaFX

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

SE 350 Lab 2: Christopher Columbus Sails the Ocean Blue Objective Christopher Columbus Sails the Ocean Blue This lab is a precursor to Homework #2. It will give you the opportunity to become more familiar with JavaFX before using it to complete your second homework assignment. The lab work involves completing a few guided steps in the JavaFX domain The steps are part of the "Christopher Columbus" adventure- which will be extended for Homework 2 In this adventure you will (1) create a grid of rectangles representing an ocean, (3) place Christopher Columbus' ship onto the ocean, and (3) create a key event handler that moves the ship as you press up, down, left, and right arrows. If you have time, you will add islands to the ocean and integrate the logic that disallows the ship to sail through an island Design Thinkin Create and display the "ocean" in JavaFX. Note: The ocean is initially a 10X10 grid of blue rectangles displayed in a Pane Before we start - let's think about the design. We are going to follow a very similar design to the Maze application and work with three classes: OceanExplorer (aka MazeGame), OceanMap (aka Maze), and Ship (aka Seeker). The OceanExplorer is going to include the main method, set up the JavaFX stage and screen, and include the key event handler. The OceanMap will include the grid (for now this will be quite simple- but it will get more interesting when we add islands etc). The ship tracks the current location of the ship and is responsible for move North, South, East, and West operations Step 1: Set u 1. Create a new java project called ColumbusGame 2. Create three new classes: OceanExplorer, OceanMap, and Ship. Make sure OceanExplorer contains a main) method Step 2: Create a Stage in Ocean Explorer 3. Make the OceanExplorer class extend Application. Import necessary packages and add the Start method (you can just accept Eclipse's recommendation to add unimplemented methods) Add the statement: launch(args) to main(...) Now you are ready to create and display a scene on the stage. In this first step we will just create an empty stage 4. 5

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Objects And Databases International Symposium Sophia Antipolis France June 13 2000 Revised Papers Lncs 1944

Authors: Klaus R. Dittrich ,Giovanna Guerrini ,Isabella Merlo ,Marta Oliva ,M. Elena Rodriguez

2001st Edition

3540416641, 978-3540416647

More Books

Students also viewed these Databases questions

Question

explain what is meant by experiential learning

Answered: 1 week ago

Question

identify the main ways in which you learn

Answered: 1 week ago