1 / 11

Battleship

Battleship. J2ME Mobile Game. Frank Ng. Approach. Installed J2ME and Eclipse to edit the Java code Learned J2ME/Java by looking at example code Created a basic flowchart for basic functionality Corrected as I programmed Once I had basic functionality, I would expand if there is more time

robertbhill
Download Presentation

Battleship

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Battleship J2ME Mobile Game Frank Ng

  2. Approach • Installed J2ME and Eclipse to edit the Java code • Learned J2ME/Java by looking at example code • Created a basic flowchart for basic functionality • Corrected as I programmed • Once I had basic functionality, I would expand if there is more time • Used the examples and the flowchart to create Battleship • Networking example  Socket  client.java, sender.java, server.java • Tilepuzzle example  board.java

  3. Flowchart

  4. Screenshot – Setup of board

  5. Screenshot – Finish Setup

  6. Screenshot – Choose player

  7. Screenshot – Start Playing Key White – Blank Square Blue – Miss Red – Hit Grey – Ship

  8. Screenshot – Game Finished

  9. Conclusion • Good overall learning experience • Learned from example • J2ME WTK • Java • Networking

  10. Conclusion – Cont’d • Could have implemented more functionality/aesthetics given more time • Create “explosions” when player gets a hit • Also use other images for misses, ships, etc. • Detect if player setup ALL of the ships • Make it easier to setup the ships • Notification when a connection has been made between the client and server • etc.

  11. Questions/Comments?

More Related