×

Discussion Board

Results 1 to 5 of 5

Hybrid View

  1. #1
    Registered User
    Join Date
    Jun 2012
    Posts
    2

    Developing Landscape Game on Nokia Asha 303

    Hello there, i am a newbie in j2me development.

    I would ask some question, are there some way so i can force my game application in landscape mode? Just like Angry Bird for Nokia Asha 303.

    I've some ideas actually, like rotating the sprite image 180%, and then transform the x and y position. But then come a problem if i want to use keypad as the control button.

    Anyone got some idea regarding this matter? xD

  2. #2
    Nokia Developer Expert
    Join Date
    Aug 2011
    Posts
    555

    Re: Developing Landscape Game on Nokia Asha 303

    Hi chocoloid and welcome to Nokia's Discussion Boards,

    The problem you would have to deal with, is that there is no accelerometer on Nokia Asha 303, so it is not possible to "grab" the rotation event from portrait to landscape and vice versa. Also the keypad that appears on high level LCDUI Components for typing (if you are using it in your app), comes with a fixed orientation, so the developer cannot modify its layout. You would have to create your own low level Canvas keypad and you would have to ask the end-user to manually change from portrait to landscape with a press of a button/Command/key by implementing low level transformations.
    Last edited by skalogir; 2012-06-07 at 15:12.

  3. #3
    Registered User
    Join Date
    Jun 2012
    Posts
    2

    Re: Developing Landscape Game on Nokia Asha 303

    okay, so i cannot rotate the GameCanvas just using the SDK? okay. xD

  4. #4
    Nokia Developer Champion
    Join Date
    Mar 2012
    Location
    Surabaya, Indonesia
    Posts
    72

    Re: Developing Landscape Game on Nokia Asha 303

    Quote Originally Posted by chocoloid View Post
    okay, so i cannot rotate the GameCanvas just using the SDK? okay. xD
    That's right,

    First you need to decide the supported orientation for your game, i.e: Landscape
    Then, you need to transform all of the sprite manually by using this transformation function like

    Sprite.TRANS_NONE: Copy with no alteration (default)
    Sprite.TRANS_ROT90: Rotate the image region clockwise by 90 degrees
    Sprite.TRANS_ROT180: Rotate the image region clockwise by 180 degrees
    Sprite.TRANS_ROT270: Rotate the image region clockwise by 270 degrees

    Last, you also need to adjust the keypad pressed function, e.g: right = move forward, left = move backward, etc.
    Jeffrey Hermanto Halimsetiawan
    Game Developer | Mobile Apps Developer
    LinkedIn

  5. #5
    Nokia Developer Expert
    Join Date
    Aug 2011
    Posts
    555

    Re: Developing Landscape Game on Nokia Asha 303

    No I am afraid not. There is no orientation simulation on the SDK 1.1, because catching orientation events is not supported on Asha 303 (Java Runtime 1.1) which is the based-on device for the SDK.

Similar Threads

  1. nokia asha 302
    By Krishnarulezz in forum General Development Questions
    Replies: 2
    Last Post: 2012-03-05, 08:41
  2. QA failed: game N95 landscape not available
    By Lunaforte in forum [Closed] Publishing to Nokia Store
    Replies: 5
    Last Post: 2009-08-03, 23:21
  3. Desperate Game Project (First time in game developing)
    By ginnixcan in forum Mobile Java Games
    Replies: 129
    Last Post: 2009-04-30, 00:22
  4. Developing a Game
    By Tina_Tibrewal in forum Symbian
    Replies: 1
    Last Post: 2006-12-01, 10:39
  5. game developing for Nokia 8310e
    By fl45 in forum General Development Questions
    Replies: 1
    Last Post: 2003-12-28, 14:37

Posting Permissions

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