ForNeVeR / O21

FOSS remake of U95, an old submarine arcade game from 1995.
MIT License
19 stars 9 forks source link

Player sprite positioning #121

Closed ForNeVeR closed 1 year ago

ForNeVeR commented 1 year ago

Currently, the player position we get from the game engine marks the coordinate of the top left corner of the sprite.

While it's possible to make game with that, let's consider using the center of the sprite instead, and making that the rule for all the others.

This opens the question of how to track positions of oddly-shaped sprites, though.

Anyway, figure it out and eliminate TODO[#121].

ForNeVeR commented 1 year ago

I've considered this and decided against it. We'll have proper corner coordinates on sprites, e.g. TopLeft or TopForward (for player).