Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+1)

The game is really good, even addictive, but one question that’s been keeping me up at night is, how did you do the 3D rotation with 2D sprites?

(+2)

Heh, the game is a little insane for this, but first basically I manually made pixel art frames for each tile, to allow smoothly rotating them between the north/south/east/west camera directions. There's no detail on the tiles here - the most important part is that they cleanly tile the plane with no pixel gaps.

Then, the game just has a 3D coordinate system for everything internally, despite using a 2D renderer, and a big table of matrices for transforming the 3D coordinates to 2D locations + Z indices.