When you draw a bunch of sprites (pseudo code):
Code: Select all
background:draw()
enemies:draw()
player:draw()
Code: Select all
translate(scrollX, 0)
background:draw()
enemies:draw()
player:draw()
By the same token, you can draw your game at different scales without needing to change any of your sprite code:
(pseudo code)
Code: Select all
scale(0.5, 0.5) -- half-sized displays
background:draw()
enemies:draw()
player:draw()