Course Solutions Uncategorized (Solved) : Java Wrote Program Created 10×10 Ocean Grid Added Ship Added Keypressed Handler Could Move Q28685109 . . . .

(Solved) : Java Wrote Program Created 10×10 Ocean Grid Added Ship Added Keypressed Handler Could Move Q28685109 . . . .

 

[JAVA]

I wrote a program that created a 10×10 ocean grid, added a ship,added a keypressed handler so i could move the ship around andadded N random islands to a map that the ship cannot touch. Pleasehelp with the following step. My code is below with theassignment.

See my implementation below:

— Ocean Explorer.java

import javafx.scene.Scene;
import javafx.scene.paint.Color;
import javafx.scene.shape.Rectangle;
import javafx.application.Application;
import javafx.event.EventHandler;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
import javafx.scene.input.KeyEvent;
import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.Pane;
import javafx.stage.Stage;

public class OceanExplorer extends Application{

   boolean[][] islandMap;
   Pane root;
   final int dimensions = 10;
   final int islandCount = 10;
   final int scalingFactor = 50;
   Image shipImage;
   ImageView shipImageView;
   OceanMap oceanMap;
   Scene scene;
   Ship ship;
  
   @Override
   public void

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post