za419 / Asteroids

Final Game for EECS 205, Winter 2018, Northwestern University
0 stars 0 forks source link

Change respawns to use frame counts #4

Closed za419 closed 6 years ago

za419 commented 6 years ago

I just realized that rdtsc is probably inappropriate because of the fact that it continues incrementing while the game is paused, so objects can and will tick down their respawn during pause.

Switching to framecounts (as updated in GamePlay), may have some or all of the following benefits:

za419 commented 6 years ago

Using gamescore is a good substitute here, because it is largely a frame counter, and automatically shortens respawns when the player is doing good.