C++ Game Engine Development – Part 39 – Removing Projectile on Collision

Last week we wrote the code that will enable communication between objects when they collide. This communication can happen at three stages of a collision: when the collision occurs, every frame the collision is maintained, and when the collision ends. This week we are going to write a new component for our projectile that will remove it from the game when it collides with another object (so when collision first happens). It will be a simple component but will hopefully show you how to respond to collision events.

C++ Game Engine Development – Part 32 – Spawning Projectiles

This is part of an ongoing series where we write a complete 2D game engine in C++ and SFML. A new tutorial is released every Monday. You can find the complete list of tutorials here and download the source code from the projects GitHub page.Last week we added the final touches to our projectile animation however there is […]

C++ Game Engine Development – Part 30 – One Shot Animations

This is part of an ongoing series where we write a complete 2D game engine in C++ and SFML. A new tutorial is released every Monday. You can find the complete list of tutorials here and download the source code from the projects GitHub page. Last week we ran into an issue with our animation system. Whenever we […]

C++ Game Engine Development – Part 28 – Projectile Animation

This is part of an ongoing series where we write a complete 2D game engine in C++ and SFML. A new tutorial is released every Monday. You can find the complete list of tutorials here and download the source code from the projects GitHub page.This week we will add a new projectile attack animation to our player. We […]