New games every week!
JSE - Thoughts : Collision Detection
25th May 2021  
There are a lot of things to collide... hmm...

Thoughts within..


Michael Fernie brought it up in a recent comment.
Suggestions for future additions would be basic 2d collision checks. I think most games would use it.

Yep, sure would.
I've been letting this one fester away on the back burner for a while.

Since I'm not "Handling Sprites" it actually makes this process a little harder.
It'd be easy to move sprite n to position x,y, then ask the language "is it colliding?", but without sprite functionality, we're going to have to do things a little more manually, and that tends to overcomplicate things a little.

Currently I'm thinking about assigning shapes to Symbols, to act as bounding boxes.
Draw a ball, give it a circle shape.
Draw a spike, give it a cross shape.
Draw a crate, give it a rectangle.

But that's only Symbols. Text won't have those shapes, nor will any of the actual shape commands.

Then there's scaling and rotation to work out, too.

seems an awfully convoluted command.
Even with "shapes" added to the symbols, you'd still end up with..


I'm not sure what the best fit for commands might be, here.
If you'd like to chip in with your thoughts, please do so in the comments below.

Views 85, Upvotes 2
Jse , Thoughts
New games every week!
Site credits : Jayenkai, one crazy fool who has far too much time on his hands.
(c) Jayenkai 2017 and onwards, site design Rychan. RSS feed
Blog - JSE - Thoughts : Collision Detection - AGameAWeek