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!
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement