Skip to content

Redesign dino game to match Chrome T-Rex visual style#2

Open
Copilot wants to merge 8 commits intomainfrom
copilot/create-dino-game-package
Open

Redesign dino game to match Chrome T-Rex visual style#2
Copilot wants to merge 8 commits intomainfrom
copilot/create-dino-game-package

Conversation

Copy link
Contributor

Copilot AI commented Feb 14, 2026

The dino game used basic rectangles for all sprites. Updated to pixel-art rendering matching Chrome's T-Rex game.

Visual Changes

Sprites redrawn with pixel art:

  • T-Rex: Body segments (tail, torso, neck, head), articulated legs with 5-frame alternating run cycle, ducking pose variant
  • Cacti: Multi-segment stems with variable arm positions
  • Pterodactyls: 8-frame wing flap animation
  • Eyes: White background + black pupil for contrast on all poses

Chrome aesthetic:

  • Background: #f7f7f7#fff
  • Score: "Score: X" → 5-digit zero-padded format 00000-99999 (capped)
  • Ground: Single line → line + textured dots
  • UI: Removed shadows, rounded borders

Implementation

Created helper functions drawDino, drawCactus, drawPterodactyl using fillRect primitives:

const drawDino = (ctx, x, y, isDucking, frame) => {
  // Body segments
  ctx.fillRect(x + 8, y + 8, 16, 16);  // Torso
  ctx.fillRect(x, y + 16, 4, 4);       // Tail
  
  // Animated legs (alternates every 5 frames)
  const legFrame = Math.floor(frame / 5) % 2;
  if (legFrame === 0) {
    ctx.fillRect(x + 20, y + 24, 4, 6);  // Forward
  } else {
    ctx.fillRect(x + 10, y + 24, 4, 6);  // Back
  }
  // ...
};

Frame counter drives animations. CSS image-rendering: pixelated for crisp edges.

Screenshots

Before:
Before

After:
Initial
Jumping
Game Over


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 4 commits February 14, 2026 06:47
Co-authored-by: uanid <35264628+uanid@users.noreply.github.com>
Co-authored-by: uanid <35264628+uanid@users.noreply.github.com>
Co-authored-by: uanid <35264628+uanid@users.noreply.github.com>
Co-authored-by: uanid <35264628+uanid@users.noreply.github.com>
Copilot AI changed the title [WIP] Add dino game package Add dino game package Feb 14, 2026
Copilot AI requested a review from uanid February 14, 2026 06:55
@uanid uanid marked this pull request as ready for review February 14, 2026 07:03
Copilot AI and others added 3 commits February 14, 2026 07:08
Co-authored-by: uanid <35264628+uanid@users.noreply.github.com>
Co-authored-by: uanid <35264628+uanid@users.noreply.github.com>
Co-authored-by: uanid <35264628+uanid@users.noreply.github.com>
Copilot AI changed the title Add dino game package Redesign dino game to match Chrome T-Rex visual style Feb 14, 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.

2 participants