Join Our 3 MILLION+ Members Today! Register Here | Login
Go Back   BlackBerry Forums at CrackBerry.com > BlackBerry Professionals > App Developers

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
    Thread Author   #1  
Old 05-29-2009, 03:29 AM
CrackBerry Newbie
Device(s): Not a BlackBerry/Smartphone User
 
Join Date: May 2009
Posts: 2
Likes Received: 0
Thanked 0 Times in 0 Posts
Default Game Canvas Problem

Hi All,

I have developed a 2D game using J2me API.
I have used GameCanvas to draw TiledBackground and sprite.
I am positioning sprite according to the relative X and Y cords calculated on the basis of canvas width and height.
Its working fine in Sun's default color phone, exactly according to the calculated position. But my sprite goes out of screen in BlackBerry phones on the same calculated position.
Is any other option to make X and Y cords relative for each phone screen?

In Waits..

Sonal
Reply With Quote Tip this Post
  #2  
Old 06-12-2009, 05:14 PM
CrackBerry Newbie
Device(s): 9530 (Storm)
Carrier: Telus
 
Join Date: Mar 2009
Posts: 3
Likes Received: 0
Thanked 0 Times in 0 Posts
Default

You can get the width and height of the screen through code . that should give you an idea of how to position stuff.
Reply With Quote Tip this Post
Reply
BlackBerry Forums at CrackBerry.com > > BlackBerry Professionals > App Developers   Game Canvas Problem

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes