I am making a simple retro game in a small window (320x240) and I want to give the player an option to set a x2 mode so that the window effectively becomes a 640x480 one. I will possible add x3 etc... too so I need things to be flexible.
Now I know that I can use BMaxs SetScale capability to enlarge the graphics to fill this new, bigger window but what would be the best way to tackle the updating of my game objects so that they still move in the same way as they did at the smaller size?
Should I be programming in this way,
Scale=1 (1 for small window, 2 for x2 window)
xpos=xpos+speed*scale
ypos=ypos+speed*scale
Would this be the best and most simple way to go about solving this problem?
Another one would be to plot my objects at percentages instead of say, 10 pixels in I would place my object at 10% of the screen width this way when scaled up it would still be in the same place right? I`m not too sure on how to go about this though but I think that the idea is a good one.
Any other solutions would be most appreciated.
Jason.
Now I know that I can use BMaxs SetScale capability to enlarge the graphics to fill this new, bigger window but what would be the best way to tackle the updating of my game objects so that they still move in the same way as they did at the smaller size?
Should I be programming in this way,
Scale=1 (1 for small window, 2 for x2 window)
xpos=xpos+speed*scale
ypos=ypos+speed*scale
Would this be the best and most simple way to go about solving this problem?
Another one would be to plot my objects at percentages instead of say, 10 pixels in I would place my object at 10% of the screen width this way when scaled up it would still be in the same place right? I`m not too sure on how to go about this though but I think that the idea is a good one.
Any other solutions would be most appreciated.
Jason.