Relative vs Absolute position, problem with screen sizes

Tutorials concerning the OpenGL® ES cross-platform API for full-function 2D and 3D graphics on the Google-Android platform.

Relative vs Absolute position, problem with screen sizes

Postby blafiz » Tue Feb 15, 2011 4:43 pm

Hi guys, my first post here.

I am wondering how can I make a puzzle game...

As a puzzle game, I want to have the entire game on the screen. So I can not set the size of a movable piece 50px for exemple. If I do this, then in another screen size, my game can be bigger or smaller then the screen (making a mess with the player).

So guys, how can I make my game fit in any screen?

And I am making my puzzle game with hard coded values for the screen width and height. How can I get this values dynamically in any device?

Thanks and I hope be in the right way! =)
blafiz
Freshman
Freshman
 
Posts: 2
Joined: Tue Feb 15, 2011 3:40 pm

Top

Re: Relative vs Absolute position, problem with screen sizes

Postby MichaelEGR » Tue Feb 15, 2011 5:09 pm

Welcome....

Check out this thread for a similar question:
post51645.html#p51645

Hopefully I'll have a little more time soon to post more on AndDev soon.

Cheers,
--Mike
Founder & Principal Architect; EGR Software LLC
http://www.typhonrt.org
http://www.egrsoftware.com
User avatar
MichaelEGR
Senior Developer
Senior Developer
 
Posts: 147
Joined: Thu Jan 21, 2010 5:30 am
Location: San Francisco, CA

Top

Return to Android 2D/3D Graphics - OpenGL Tutorials

Who is online

Users browsing this forum: No registered users and 1 guest