Another quickie update. I spent about 30 minutes this morning and enabled my projectiles to respond to collisions. I'm loving this ECS Framework on how easy it made this. Just added some properties to my MapCollidable component (a boolean for if i collided, and a vector to hold the collision response vector) and populated them in the appropriate places in the MapCollisionSystem. I then just updated my ProjectileSystem to look for a MapCollidable component. If it found one, it would see if it detected a collision, if it did, it would reflect its heading off the collision response vector and make that the new heading. Voilà, bouncy blasters!
Bouncy Blasters in action:
[note: purple has no collision component, so they pass right through obstacles]
Anyway, thats all for now.
Bouncy Blasters in action:
[note: purple has no collision component, so they pass right through obstacles]
Anyway, thats all for now.






Create a custom theme










