Skip to content

Start Space Invaders immediately by removing pre-game animation pipeline#439

Merged
jbampton merged 1 commit intomainfrom
copilot/remove-animations-before-game-starts
Apr 19, 2026
Merged

Start Space Invaders immediately by removing pre-game animation pipeline#439
jbampton merged 1 commit intomainfrom
copilot/remove-animations-before-game-starts

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 19, 2026

Space Invaders had a pre-start sequence (emoji burst, timed fade, and trigger-side delay) that blocked immediate play after activation. This change removes that pipeline so gameplay initializes as soon as the launch condition is met.

  • Game startup path (space-invaders.js)

    • Removed the intro explosion system and its assets/constants.
    • Replaced delayed/fade-based boot with direct _setupGame(this) in scene create.
    • Enabled immediate interaction by setting the game canvas to pointerEvents: "auto" at creation.
  • Trigger behavior (eggs.js)

    • Removed heart growth/transition animation on click progression.
    • Removed post-trigger timeout/opacity transition.
    • On the 5th click, launch now happens synchronously.
// Before: delayed intro pipeline
function _onCreate() {
  const particles = _spawnExplosion(this);
  this.time.delayedCall(5000, () => { /* fade + cleanup */ _setupGame(this); });
}

// After: immediate game init
function _onCreate() {
  _setupGame(this);
}

@jbampton jbampton added this to Next Apr 19, 2026
@github-project-automation github-project-automation bot moved this to In progress in Next Apr 19, 2026
@jbampton jbampton added this to the Hackfest milestone Apr 19, 2026
@jbampton jbampton added the good first issue Good for newcomers label Apr 19, 2026
@jbampton jbampton marked this pull request as ready for review April 19, 2026 06:16
@jbampton jbampton self-requested a review as a code owner April 19, 2026 06:16
@jbampton jbampton merged commit a8d7d51 into main Apr 19, 2026
12 of 13 checks passed
@jbampton jbampton deleted the copilot/remove-animations-before-game-starts branch April 19, 2026 06:17
@github-project-automation github-project-automation bot moved this from In progress to Done in Next Apr 19, 2026
Copilot AI added a commit that referenced this pull request Apr 19, 2026
Agent-Logs-Url: https://github.com/NextCommunity/NextCommunity.github.io/sessions/7a2c3d4c-134f-4fb6-aeaa-9161764680a3

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: jbampton <418747+jbampton@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

good first issue Good for newcomers

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants