Go Back   BlackBerry Forums at CrackBerry.com > BlackBerry Professionals > Developer's Forum

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 05-29-2009, 04:29 AM
CrackBerry Newbie
Device Model: Not a BlackBerry/Smartphone User
 
Join Date: May 2009
Posts: 2
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
  #2  
Old 06-12-2009, 06:14 PM
CrackBerry Newbie
Device Model: 9530 (Storm)
Carrier: Telus
 
Join Date: Mar 2009
Posts: 3
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
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



 
 Site Support | Accessory Order Support | App Store Support | Advertise | Newsletter | About Us

Creating smartphone communities
Android Central - Android reviews, news and forums Crackberry - Blackberry news, reviews and community TiPb - iPhone news, accessory reviews & forums
Pre Central - Palm Pre Review, News and Community Treo Central - Treo & Centro News and Forums WMExperts - Windows Mobile Reviews & News

The names RIM and BlackBerry are registered Trademarks of Research in Motion Limited.
CrackBerry.com is in No Way Affiliated with Research in Motion Limited.
Copyright ©2007-2009 Smartphone Experts. Terms and Conditions. Privacy Policy. All rights reserved.