Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

So 60 times a second, the `tick()` function is called, inside there, it calculates where the camera will be for the next frame, then calls `redraw()` which draws the screen... inside `redraw()`, the camera position is taken into account when drawing the tiles and objects to the screen, offseting things accordingly -- 

You can view the source code by visiting https://pulp.biz/over-the-moon/ and right clicking the screen and select "View Page Source" for all the gritty details.

Neither our replies or code are AI generated. :) 

Let us know if you have any other questions.