ondras / rot.js

ROguelike Toolkit in JavaScript. Cool dungeon-related stuff, interactive manual, documentation, tests!
https://ondras.github.io/rot.js/hp/
BSD 3-Clause "New" or "Revised" License
2.33k stars 254 forks source link

FPS Limiter #75

Closed seiyria closed 9 years ago

seiyria commented 9 years ago

Is there a way to limit the FPS for the game? For example, my game can have up to 4 people playing (automatically), but when one of them dies, the processing speed picks up quite a bit (player turns are comptuationally expensive). If I could limit the FPS this wouldn't be too much of a problem, I think.

seiyria commented 9 years ago

This was actually me being bad - I forgot that I had something in place for this sort of logic. It forgot to check for dead players, though, d'oh!