Skip to content

Conversation

Copy link

Copilot AI commented Jan 6, 2026

Implements a 4-pellet power-up system (2 blue +1 length, 1 green +5 length, 1 red instant-death), removes server-dependent leaderboard for GitHub Pages deployment, and adds fork attribution.

Game Mechanics

  • Multi-pellet array: Single pellet → 4 typed pellets with RGB colors
  • Blue orbs (2): Standard +1 length/score, respawn on collection
  • Green orb (1): +5 length/score, respawns on collection
  • Red orb (1): Instant death, relocates every 3rd orb collected
pellets = [
    { type: 'blue', value: 1, color: { r: 0, g: 0, b: 255 }, ... },
    { type: 'blue', value: 1, color: { r: 0, g: 0, b: 255 }, ... },
    { type: 'green', value: 5, color: { r: 0, g: 255, b: 0 }, ... },
    { type: 'red', value: -1, color: { r: 255, g: 0, b: 0 }, ... }
];

Collision detection handles type-specific behaviors with orb counter for red pellet movement logic.

Static Hosting

Removed all server dependencies for GitHub Pages compatibility:

  • Stripped leaderboard.js, reCaptcha, Google Analytics
  • Removed PHP-dependent submission endpoints
  • Verified relative asset paths

Attribution

Added fork notices linking to kevinAlbs/SphericalSnake in both UI and README with GitHub Pages deployment instructions.

Screenshots

All pellet types visible:
Game with 4 orbs

Gameplay showing orb positions:
Game state

Original prompt

Update the game so that it creates multiple power ups at a time (four). One of them should be green, worth five length, and one should be red, which instant death. Hitting a green or blue one respawns that color somewhere else, and every third orb you get moves the red orb.

Update the code so that it can run on a GitHub Pages url, and include the instructions needed to host it from this repo on a pages url.

If that requires removal of the leader board, do so.

Update the Readme and the page itself to indicate that this is a fork of the original, and link to the original.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 3 commits January 7, 2026 00:03
Co-authored-by: hpsin <1666363+hpsin@users.noreply.github.com>
Co-authored-by: hpsin <1666363+hpsin@users.noreply.github.com>
Co-authored-by: hpsin <1666363+hpsin@users.noreply.github.com>
Copilot AI changed the title [WIP] Update game to support multiple power ups and GitHub Pages hosting Add multi-pellet power-up system and GitHub Pages support Jan 7, 2026
Copilot AI requested a review from hpsin January 7, 2026 00:23
@hpsin hpsin marked this pull request as ready for review January 7, 2026 00:57
@hpsin hpsin merged commit 7e0ae75 into master Jan 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

None yet

2 participants