💾 Archived View for whitemercury.ddns.net › offsethell.gmi captured on 2023-09-08 at 16:08:56. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-06-14)

-=-=-=-=-=-=-

I've made some games on a number of different platforms and I end up with what I'm going to call, "offset hell".

I have several things. I have a multi-screen map, a viewing window on that map (the "camera"), a player sprite, some enemy sprites, some "bullets". Some things are described in "cells" (ie the screen is 30x17 cells, a sprite is one cell in size). Some things are described in pixels (ie the screen is 240x136 pixels, a sprite is 8x8).

And I have to:

* Hit a wall * Is Standing on anything * Has hit another sprite * Has been hit by a bullet

There just seems to be too many unit conversions and offset calculating. And I spend so much time just calculating this that I get bogged down and give up.

--------------------------------------------------------------------------------

This file is located at URL:

gemini://whitemercury.ddns.net/offsethell.gmi