boxgaming / gx

GX is a basic game engine... literally. This is a Game(G) Engine(X) built with and for QB64, a QBasic/QuickBASIC IDE and compiler with modern extensions. GX supports basic 2D gaming: platformer, top-down, etc.... you know, classic NES/SNES type games.
MIT License
32 stars 3 forks source link

Sprite collision perspective is incorrect #2

Open Statsman1 opened 2 years ago

Statsman1 commented 2 years ago

Currently GX renders each sprite in the order it is created in the EXE.

The requirement is a mode that would make the sprite rendering aware when there is a forced perspective (i.e. "stacked" sprites). Sprites close enough together to overlap should have the bottom-most sprite rendered on top of all other sprites - the 2D angled perspective forces this requirement.

To wit, If collision (overlap) check Zorder and render accordingly.