×

Discussion Board

Results 1 to 1 of 1
  1. #1
    Registered User
    Join Date
    May 2006
    Posts
    1

    Question Newbie - What's the correct structure for a j2me game front end?

    Hi,

    I'm currently in the throws of writing a mobile phone game for series 40 phones. I've developed the game which essentially sits in a class of its own called mainGame.

    Now I want to add a front end, initially a splash screen then a menu to select the game options, save, load etc, but I am wondering what is the best way to do this. I need the menu to be available from within the game, not just at the start.

    My problem is this... deep breath!

    Is it good practice to create 2 new threaded classes for the Splash and Menu, and instantiate them in the midlet class together with the mainGame class. Then set displayable to the Splash class?

    Then when the splash has timed out, set displayable to the Menu class and kill the Splash (as it's not needed again). From the Menu class activate the mainGame, but should I then kill the Menu class, and recreate one when needed? Or should I leave the Menu class in memory, and some how pause it (not sure how to do this), then call it when needed.

    Hope this makes sense, I'm still fuzzy on the whole Threaded Class thing.

    Any guidance is appreciated.

    (Please forgive my ignorance, but I had to start somewhere)
    Last edited by Time-Lord; 2006-05-18 at 17:49.
    Dan James (UK)

Similar Threads

  1. saving game status after press the red end button
    By ayanir in forum Mobile Java General
    Replies: 0
    Last Post: 2006-01-16, 16:07
  2. J2ME game source code released
    By mgianota in forum Mobile Java General
    Replies: 0
    Last Post: 2005-06-30, 12:55
  3. How to install J2ME Game in Nokia 6610 ??
    By wah_java in forum Mobile Java General
    Replies: 2
    Last Post: 2004-02-12, 14:08
  4. StrangeMaze 3D game benchmark - speed comparison for J2ME phones
    By abstractworlds in forum Mobile Java General
    Replies: 24
    Last Post: 2004-01-26, 22:09
  5. Need j2me coder for cellular game project
    By nzrkiwi in forum Mobile Java General
    Replies: 0
    Last Post: 2002-12-13, 08:36

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×