Enemy Projectiles.


Enemies Shooting to me ๐Ÿ˜ง

I have started working on the next major feature I have planned for my game.

I would like the invaders from the void to also be able to attack our protagonist. Since I already have the code related to handling the projectiles that can hit our hero's ship, this should not be a difficult task. It can be divided into several stages of implementation:

  • Launching,
  • Move simulation. 
  • Detecting a hit.

// Couple of working hours latter. 

Like I have predicted I had more refactoring then actual implementation in collision detection method. I have used GameObjects types to recognize if I'm dealing with Enemy Projectile or Player Projectile, so all animations, object life time management etc is the same like for all others game objects. 

Would you like me to share code on GitHub etc? 

SFML Cross Compilation: 

Next big step is from bottom of my private backlog: Add cross compilation so I can build Windows Binary on Linux (Docker Debian workspace) that I'm using to work on this project.  

Leave a comment

Log in with itch.io to leave a comment.