Skip to main content

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

If you have MPAGD then take a look at EngineZX.asm then search (if memory serves) for "cang" as those routines check if a 16x16 sprite can move in the 4 directions.  It's all commented.