Greetings, fellow denizens of Cemetech,
I'm making a somewhat complex RPG for the 68K series (and possibly for the 84 plus CE as well, but I'm going to focus on the platform with lower capabilities first), and I need some way to perform clipping with oddly shaped objects (curved/diagonal walls, various enemies, etc.)
Currently, I'm thinking about doing it like this:
Create two buffer planes, one for each background layer.
Copy "clipping sprite" data (same as the bitmasks) into the buffers
Test eight points around the edge of the player hitbox to determine collisions.
This method seems kind of crude, given that it's going to require 16384 bytes to store the planes, and because it only works for the tiles (The enemies are mobile, so they can't be drawn to the planes).
Is there a better way to do this?
Thanks in advance!
I'm making a somewhat complex RPG for the 68K series (and possibly for the 84 plus CE as well, but I'm going to focus on the platform with lower capabilities first), and I need some way to perform clipping with oddly shaped objects (curved/diagonal walls, various enemies, etc.)
Currently, I'm thinking about doing it like this:
Create two buffer planes, one for each background layer.
Copy "clipping sprite" data (same as the bitmasks) into the buffers
Test eight points around the edge of the player hitbox to determine collisions.
This method seems kind of crude, given that it's going to require 16384 bytes to store the planes, and because it only works for the tiles (The enemies are mobile, so they can't be drawn to the planes).
Is there a better way to do this?
Thanks in advance!