110 likes | 182 Views
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
E N D
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 • Used the examples and the flowchart to create Battleship • Networking example Socket client.java, sender.java, server.java • Tilepuzzle example board.java
Screenshot – Start Playing Key White – Blank Square Blue – Miss Red – Hit Grey – Ship
Conclusion • Good overall learning experience • Learned from example • J2ME WTK • Java • Networking
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.