Artifact 3 and stuff
|
Hello there 😉 I’m currently working on a particle engine, but since that is not quite completed I will talk about something else that I made which is a bit simpler (my particle engine is pretty simple as well, but I am really unfamiliar with the vertices and therefore I get alot of trouble making the particles visible. Otherwise it goes fine (I think)). The artifact that I will talk about are the enemies and their damage. Our game so far contains three types of enemies. They all have about the same AI (if you even can call it AI…); they spawn in randomized positions just outside the screen and move in towards the middle. When within a certain range they switch into another state in which they stand and shoot with different attack speeds, damages and stuff. The last enemy made was the third one, the ”Sniper”. She is a long ranged enemy (duhh), that slowly moves towards the middle and when within that range fires very strong bullets with a very low attack speed. Before she existed we did not have a damage-method for the enemies. The damage functions was made by adding a private integer to the enemy object, which was ”damage”. This integer was sent into the constructor of an enemy bullet and was saved there. When the bullet collided with the truck i called on a function in the truck that was called ”Damaged”. It took one parameter that said how much it would be damaged. Simple! 🙂 When the damage function was implemented we could start balancing the enemies in a much more versatile way. The way we keep it now is Enemy 2: High hp, short attack range, fast speed, fast attacks, medium damage. Enemy 3 Medium hp, long range, slow speed, slow attacks and huge damage. The level one enemy is a simple one to face, they are predictable and not that dangerous. Killing on is simple. There will always be lots of these guys. The level two enemy will be stressing the player a bit more. With it’s high movement speed and high damage it will be crucial to kill them before they reach the truck. They are however very tanky, so they will not die unless you focus your fire. The level three enemies won’t be coming often at all, but you really have to keep your eyes open and kill them as soon as you see them. If you fail to notice one approaching and can’t take it down in time it will cause serious damage to your truck. Bye! |
