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.
Description
Adds a new break channel that simulates Galaga gameplay.
The resting state of the channel is the Galaga "infinite scroll". Periodically, decorative enemy ships fly by on the margins to add some action between donations.
When a donation comes in, an enemy ship is spawned in the play area and travels down towards its resting position. Once the enemy ship crosses a certain threshold, it is targeted by the player ship, shot at, and destroyed. Once destroyed, an explosion animation plays and is replaced by the donation total.
Enemies spawn in random columns within the play area. If an enemy reaches a certain lower threshold, it will spin around and "park" until it is targeted/destroyed. If two enemies spawn in the same column, they stack one over another.
Bigger donations result in higher level ship spawns: bee, butterfly, then boss.
There is no fail state: enemy ships have no offensive capabilities and the player ship cannot be damaged or destroyed in any circumstance.
Galaga-GQD_1.mp4
On a personal note: this is very new territory for me (first time using Pixi.JS or doing any animation at all, really!) so I am very open to any aesthetic/code quality changes and grateful for any feedback. I'd also like to thank the author(s) of the Megaman channel, since the bones of this were built by pattern-matching their work.
Checklist: