I am currently developing a simple Tower Defense game and would like to implement the functionality for the player to speed up the game.
First, I was thinking it is easy to solve by speeding up the the enemies and towers, but a simple equation showed me it is not that easy.
For example my enemy is standing at x=0m its speed is 10m/s and the time per frame is 1s (to make the calculation easier).
So after one frame my enemy is at x=10m (pos = speed * time)
To double the game speed I would double the enemy speed, and would get the enemy position at x=20m after one frame.
Now, if I have a tower at x=10m with a range of 5m in both directions, then the enemy in normal speed would be in range. The enemy with double speed would not be in range. So, this shows me that just increasing the speed is not the solution for a time based game.
Does anybody has experience with that and could help me?
Edited by MarkusH82, 21 January 2014 - 05:34 AM.