Topic: kill enemy in my game
I learned to create a lot of enemies in your game, but can't write good code, how to kill them.
Please someone, if you have your code.
Enemies I do through the class.
There is a class, it has coordinates, health, movement speed and so on.
There are features that allow him to move, to shoot at my player and stuff, but as the player is to kill the enemy?