Repository navigation
A breather when the game comes back from the glasses; a bounded animation clock - #47
Merged
Merged
Conversation
…tion clock Handing the game back from the glasses (or the glasses going away) resumed the phone's frozen round at once, bombs mid-air, while the player's eyes were still on the way over. The hand-back now grants the same breather a hit does, when a round is in progress; on the title or an end screen it grants nothing. The animation clock behind every pulse and blink only ever grew; after a day on the title screen a frame's worth of time no longer registers in a float that large. It now wraps every 1000 turns of 2π, which every sinf(clock * k) with an integer k continues through seamlessly. Three tests: the hand-back breather, no breather outside a round, and 10000 s of frames leaving the clock bounded. 147 -> 149 tests.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Handing the game back from the glasses (or the glasses going away)
resumed the phone's frozen round at once, bombs mid-air, while the
player's eyes were still on the way over. The hand-back now grants the
same breather a hit does, when a round is in progress; on the title or
an end screen it grants nothing.
The animation clock behind every pulse and blink only ever grew; after
a day on the title screen a frame's worth of time no longer registers
in a float that large. It now wraps every 1000 turns of 2π, which every
sinf(clock * k) with an integer k continues through seamlessly.
Three tests: the hand-back breather, no breather outside a round, and
10000 s of frames leaving the clock bounded. 147 -> 149 tests.