Skip to content

Repository files navigation

CubDen Game - Polar Bear Endless Runner

A browser-based Phaser 3 endless runner where a cybernetic polar bear sprints across unstable Arctic ice, dodges sliding penguins, and survives accelerating obstacle waves.

Game Features

  • Endless Runner Mechanics: Polar bear auto-runs forward
  • Desktop and Touch Controls: keyboard and on-screen controls
  • Pause Support: ESC or on-screen pause button
  • Animated Sprite: 10-frame walking animation
  • Procedural Obstacles: ice holes and sliding penguins
  • Progression Layer: score, distance, milestones, best-run tracking, and difficulty tiers
  • Arctic Presentation: snow particles, parallax clouds, mountains, and drifting ice details

Commands

pnpm install
pnpm dev      # Vite dev server
pnpm verify   # Security scan + production build
pnpm build    # Production build
pnpm preview  # Preview production build

How to Play

  1. Run pnpm dev to start the development server
  2. Open http://localhost:5173/ in your browser
  3. Use SPACE, W, or UP ARROW to jump on desktop
  4. On mobile or narrow screens, use the on-screen Jump and Pause buttons
  5. Press ESC to pause or resume on desktop
  6. Avoid ice holes and penguins while speed increases over time
  7. Press ENTER or R to restart after game over

Project Structure

  • index.html - Main HTML file
  • src/polar-bear-main.js - Game entry point
  • src/scenes/PolarBearScene.js - Main game scene
  • src/ui/TouchControls.js - Mobile control bindings
  • scripts/security-scan.mjs - Lightweight repository scan for suspicious code patterns
  • assets/polarbear-game/ - Game assets (sprites, etc.)

Tech Stack

  • Phaser 3.80+
  • Vite 5
  • ES Modules

Release Notes

  • Current package version: 0.1.0
  • Public repo hygiene includes a pre-commit security scan, CI verification workflow, and documented security handling guidance

About

Cub Game

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages