-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
consistent grenade/missile/plasma shooting rates (#417)
* fix FramesFromNow usage many frame number checks were of the form if (doSomething < frameNumber) { doSomething = FrameFromNow(3) } For classic mode that means to doSomething at most every 4th frame. But for high-FPS, this code would start doing something on frame 13 instead of on frame 16... faster than classic. Changing code to work across frame rates like this: if (doSomething <= frameNumber) { doSomething = FrameFromNow(3+1) } * fix tests and bugs found by tests The HECTOR.Boost* tests had to be fixed because they were actually boosting on frame 1 since boostEndFrame inits to 0. * added 1 classic-frame limiter to the plasma shot so that all frame rates behave the same on shooting rate
- Loading branch information
Showing
4 changed files
with
26 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters