Tank game updates:
- Added file 'shareddefines.h' to keep all defines (enums, structs, etc.) stored so there won't be any include problems.
- Implemented a (temporarily very ugly) small spot where both enemies and players will be 50% slower (slow_area.bmp).
- Got rid of the rotating block because I already got rid of the collision on it and I am not planning to implement it properly in this stage of development anyways.
- Movespeed is now handled by Player and Enemy class rather than simply using a define. This makes it possible to adjust speed.
- When riding into an enemy the enemy will now be pushed away as long as the key used by 'W' (forward). It's still only semi-done hence I did not implement it for all movement types yet, but we're getting there :) (including collision detection for pushing them into objects).
- Landmines will now only cause nearby breakable walls (within 100 pixels) to explode and disappear rather than always
- A landmine exploding now makes other landmines, bullets and enemies explode too if they are within 100 pixels of the landmine.
- Enemies are now able to die and will no longer do anything after they are killed.
- Move some initializing into functions in Game class (walls, characters).
- Using Shift + R will now also respawn all enemies, delete all bullets and delete all landmines. Enemies will also choose a new random waypoint at this point.
- Landmines and bullets are now properly added to the Player class when you shoot a bullet or place a landmine. What was I even thinking? ._.
- Waypoints now have an option to pick a new random path when they reached the last point of their current waypoint.
- Enemies will now randomly shoot while their pipe rotates in circles non-stop. This is more of a test to see how everything will look.
- Bullets now start off in the proper direction rather than rotating correctly a nano-second after they were added to the game.
- The bullet count of the player will now only be decreased when the shooter of the bullet was actually a player.
- Exploded landmines and bullets will no longer be used in any code at all.
- Bullets will only kill enemies when the bullet comes from the player. This is a temporarily thing so enemies won't constantly kill themselves, but still allows me to kill them when I need to get rid of them. :)
- Update the TODO.txt.
- Get rid of a lot of commented out and/or unused code as well as some unused files.