×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Jun 2008
    Posts
    13

    Question S40 3rd ed FP2 Question

    hi, I'm making a MIDlet game, fortunately I'm only required to core it for Nokia 5300 xpress music.
    Fortunately again it's the one that's in S40 3rd Edition Feature Pack 2 SDK.
    Can I safely assume that it would work 99% on a real 5300 if it's working fine on the S40 3rdEd FP2 SDK?

    thanksss!
    My simple website: http://thirdy.co.nr

  2. #2
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: S40 3rd ed FP2 Question

    Testing on the real device is essential. Especially for a game, where performance is important. Emulators do not accurately represent the performance characteristics of real devices.

    Graham.

  3. #3
    Registered User
    Join Date
    Jun 2008
    Posts
    13

    Re: S40 3rd ed FP2 Question

    thanks for the reply,
    regarding performance, any advice on how do I make the performance playable?

    is this ok?
    while (currentThread == gameThread) {
    long startTime = System.currentTimeMillis();
    if (isShown()) {
    if (isPlay) {
    tick();
    }
    render(g);
    }
    long timeTake = System.currentTimeMillis() - startTime;
    if (timeTake < MILLIS_PER_TICK) {
    synchronized (this) {
    wait(MILLIS_PER_TICK - timeTake);
    }
    } else {
    currentThread.yield();
    }
    }
    My simple website: http://thirdy.co.nr

  4. #4
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: S40 3rd ed FP2 Question

    You can see my sample game loop here.

    Graham.

  5. #5
    Registered User
    Join Date
    Jun 2008
    Posts
    13

    Re: S40 3rd ed FP2 Question

    thanks2, just one last help,
    how about a structure for GameCanvas?

    I also saw,
    private static final int LEFT_KEY = -3; // this is right for Nokias, different on others
    is there a wiki where I could read all these considerations when coding for Nokia?

    And most of all, can you recommend any complete open source game/s where newbs like me can learn to?

    thanks so much!
    My simple website: http://thirdy.co.nr

  6. #6
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: S40 3rd ed FP2 Question

    Quote Originally Posted by thirdy View Post
    how about a structure for GameCanvas?
    No. I strongly recommend using Canvas, not GameCanvas. Canvas works better, and it's actually simpler to use. Likewise, getGameAction(). Basically, anything that the MIDP API offers you to help with game development should be avoided when developing games.

    Quote Originally Posted by thirdy View Post
    is there a wiki where I could read all these considerations when coding for Nokia?
    All the key codes for Nokias are defined in com.nokia.ui.mid.FullCanvas. Sony Ericsson devices (and some others) use the same key codes as Nokias.

    For issues relating to developing for multiple devices, there is information in the wiki.

    Quote Originally Posted by thirdy View Post
    And most of all, can you recommend any complete open source game/s where newbs like me can learn to?
    I'm afraid not. I keep meaning to write one, but I haven't got around to it yet.

    Whatever you do, keep it simple.

    Graham.

Similar Threads

  1. LAC on S60 3rd Ed FP2
    By overlaymedia in forum Mobile Java General
    Replies: 10
    Last Post: 2010-07-29, 13:40
  2. python for 3rd ed fp1 and fp2 difference
    By pacificace in forum Python
    Replies: 1
    Last Post: 2009-09-16, 18:39
  3. Why no platform services for S60 3rd Ed FP2?
    By sweekeat in forum Symbian Web Runtime
    Replies: 1
    Last Post: 2009-06-02, 06:50
  4. Incorrect rgb values for jpg images on S40 3rd ed
    By bjudfar in forum Mobile Java Media (Graphics & Sounds)
    Replies: 8
    Last Post: 2007-05-29, 16:34
  5. JSR-75 with S40 3rd eddition question
    By yair.zaslavsky in forum Mobile Java Networking & Messaging & Security
    Replies: 2
    Last Post: 2006-05-06, 19:48

Posting Permissions

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