This week, I created the first enemy to be used in my game and also worked on a collision system for the enemy's, player and his bullets.
The first thing I worked on was the basic enemy that will be created via a wave system that I will implement at a later date. This enemy fly towards the players screen whilst moving upwards and downwards whilst never travelling off of screen up or down ways. Depending on whether or not this enemy is higher or lower than the middle of the screen upon creation will determine the initial direction of movement on the Y plane. Also upon creation, this enemy spawns four more of itself behind it that all have the same attributes that it does bar a few seconds later so they do not move at precisely the same time.
I also programmed in a basic collision system that replaces enemy sprites with an explosion animation when they collide with a bullet.Once said explosion animation has finished playing the explosion will disappear.
Next week I will be working on the second kind of enemy and the upgrade system for my game.
Thank you for reading
No comments:
Post a Comment