I am preparing a game development plan for my next phonegap app. I am specific thinking about collision detection.
My thought so far are. The different screen sizes on the different smartphones will make it impossible or ?
If a game area is 500px x 500px.
if( collision left wall ) {
// deny access further
}
if( collision right wall ) {
// deny access further
}
if( collision top wall ) {
// deny access further
}
if( collision bottom wall ) {
// deny access further
}
Lets assume that "collision left wall" is 0px and "collision right wall" is 500px as normal.
I have a trouble with the understanding of the dynamic screen sizes on smartphones, how do i solve this problem?
1) Do i need to calculate the dynamic screen size and scale my images, game area and so forth?
2) Is there a much more smart way to solve this problem?
Thanks :-)