Add Konami code invulnerability easter egg - #4
Merged
Conversation
Co-authored-by: leereilly <121322+leereilly@users.noreply.github.com>
Co-authored-by: leereilly <121322+leereilly@users.noreply.github.com>
Co-authored-by: leereilly <121322+leereilly@users.noreply.github.com>
Co-authored-by: leereilly <121322+leereilly@users.noreply.github.com>
Owner
leereilly
marked this pull request as ready for review
January 27, 2026 01:48
Copilot
AI
changed the title
[WIP] Add invulnerability feature for Konami code
Add Konami code invulnerability easter egg
Jan 27, 2026
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.

Implements Konami code (↑ ↑ ↓ ↓ ← → ← → B A) as an easter egg that grants invulnerability. When activated, enemies deal no damage.
Changes
State tracking (
game/state.go): AddedKonamiSequence []stringandInvulnerable booltoGameState. Tracks last 10 key presses and matches against Konami pattern.Damage prevention (
game/state.go): ModifiedenemyAttacks()to return early when invulnerable.Input handling (
game/game.go): Arrow keys and 'b'/'a' keys now feed into sequence detection viaCheckKonamiCode().UI feedback (
game/game.go): Status bar displays "INVULNERABLE" when active. Activation shows message: "KONAMI CODE ACTIVATED! You are now invulnerable!"Example
Tests cover correct/incorrect sequences and damage mechanics with/without invulnerability.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
dl.google.com/update-job-proxy /update-job-proxy(dns block)/update-job-proxy /update-job-proxy DROP noffline test -e cation_Authority.pem noffline /opt/go/bin/test submodules | hea/usr/bin/git -trimpath git test -e CA_v1.pem /home/REDACTED/go/pkg/mod/golang.o/usr/share/ca-certificates/mozilla/Autoridad_de_Certificacion_Filist /bin/test -bool -buildtags mi-code-invulner-t test(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
Created from Copilot CLI via the copilot delegate command.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.