Hacker News new | ask | show | jobs
by Kenji 4460 days ago
Pretty good work. Didn't like it at first but then ended up playing it for a few minutes, even though I wasn't in the mood for playing games. I noticed one thing though, I looked into the code (it's neat and tidy!) and the game logic (updates) was built into the render function that gets called with requestAnimationFrame. Might be a problem on devices that aren't refreshing @60 hertz because the game runs as fast as the user's monitor.
1 comments

Good point. At 30hz I expect it'd be like playing it on the NES when too many enemies were on screen at once.. This flaw crossed my mind when I was building the game, I decided to just ignore it and hope most people are running at 60hz rather than tie all the various game timing to fractional deltas or implement one of those fixed delta game loops.