Power Towers v0.69

Changes

  • Added functionality within the StateManager class to track how many frames per second (FPS) our game is running at.

To-Do

  • Implement dynamic on-screen text to track FPS without having to check the console
  • Implement a way to show/hide diagnostic data while in-game

Known Bugs

  • There is no way to unselect a tower other than paying for it and placing it on a valid tile

Changes — Extended

FPS Counter:

The following static variables were declared and initialized at the top of our StateManager class:

We then used these variables within our update() method (which is called each update by the Boot class) to track how many frames pass each second and print the result to the console.