Docsity

Java Snake Game Content, Summaries of Design

Partial preview of the text

Download Java Snake Game Content and more Summaries Design in PDF only on Docsity!

Java Snake Game

Presented byKar Lun Ng (Daniel)

Fall 2004

Content

   PurposeDescription of the gamesSpecification of K700i

   ImplementationLessons learnedFuture Improvement

  ConclusionQuestions

Purpose

  Have hands on experience in embeddedsystem software designJava Mobile Edition (J2ME) is widely

  deployed in handsets nowadaysSnake, fun and simpleI already have a phone ready for Java

  Free development tools and emulatorA lot of online tutorial

Snake

Implementation

  Reference source code in C++J2ME Games with MIDP

 Robowar, my previous homework

SnakeMain SnakeMap (^) (persistent storage)SnakeScore SnakeBar^ Snake SnakeFood

Implementation (conc.)

Implementation (conc.)

 1.SnakeMain.java: SnakeMain() โ€“ constructor, initialize necessaryvariables

2. 3. 4. startApp() โ€“ start the SnakeMap threadpauseApp() โ€“ handle interrupts, eg. phone callsdestroyApp() โ€“ destroy free up resources

5. commandAction() โ€“ handle key press interrupts

Implementation (conc.)

Active^ Destroyed

Paused

New SnakeMap() pauseApp() startApp() destroyApp() destroyApp()

Application Management Software

Future Improvement

  Graphics (PNG)Sounds

  Set food as threadLevel Adjustment

 Network Game

Conclusion

Personal thoughts on Java Mobile Edition  High level programming language

 Good gaming APIโ€™s

THANK YOU