Skip to content

Vampire/Digital code world survivors-style idle game powered by coding - earn XP from real coding activity https://daredev256.github.io/vibe-coder/

Notifications You must be signed in to change notification settings

DareDev256/vibe-coder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

23 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

VIBE CODER ๐ŸŽฎโšก

A vampire survivors-style idle game where you earn XP from real coding activity. Code to conquer!

Phaser 3 Vite Electron Node Play Online

๐ŸŽฏ About

Vibe Coder is an idle survival game that rewards you for coding. Connect it to your development workflow and watch your character grow stronger as you write code. Every tool call, every prompt, every commit powers up your in-game character.

While you code, your character:

  • ๐ŸŽฏ Hunts enemies intelligently
  • ๐Ÿ›ก๏ธ Evades when overwhelmed
  • ๐Ÿ’ฌ Comments on your coding with 80+ unique quotes
  • โš”๏ธ Auto-attacks with your equipped weapons
  • ๐Ÿ“ˆ Levels up from your real coding XP

โœจ Features

๐ŸŽฎ Smart Auto-Play AI

  • HUNT Mode - Actively moves toward enemies
  • EVADE Mode - Kites when low HP or swarmed
  • IDLE Mode - Wanders when area is clear
  • Mode-specific quotes and visual indicators

๐Ÿ‘พ 18 Enemy Types

Type Examples
Classic Bug, Glitch, Memory Leak, Syntax Error
Coding Segfault, Dependency Hell, Git Conflict, CORS Error
AI-Themed Hallucination, Token Overflow, Prompt Injection, Mode Collapse

๐Ÿ‘น 4 Epic Bosses

  • Stack Overflow (Wave 20) - Spawns minions
  • Null Pointer (Wave 40) - Teleports
  • Memory Leak Prime (Wave 60) - Splits on damage
  • Kernel Panic (Wave 80) - Enrages at low HP

โš”๏ธ 26 Weapons

Category Count Examples
Ranged 9 Basic, Spread, Pierce, Homing, Freeze
Melee 4 Sword, Spear, Boomerang, Kunai
Rare 3 rm -rf, sudo, Fork Bomb
Legendary 3 Hunter's Warglaive, Void Reaper, Celestial Blade
Evolved 10 Laser Beam, Chain Lightning, Blizzard

๐ŸŒ 6 Stage Themes

Debug Zone โ†’ Memory Banks โ†’ Network Layer โ†’ Kernel Space โ†’ Cloud Cluster โ†’ Singularity

๐Ÿ“Š 7 Meta-Progression Upgrades

Persistent buffs: Damage, Health, Speed, Attack Rate, XP Gain, Crit Chance, Duration

๐ŸŽต Full Audio System

  • 5 procedural synthwave music tracks
  • 13+ sound effects (weapons, hits, pickups)
  • Master/SFX/Music volume controls

๐Ÿ’ฌ 80+ Character Quotes

  • Coding reactions: "Code go brrrr", "10x developer mode"
  • AI-specific: Claude, Cursor, Gemini, Codex reactions
  • Time-based easter eggs for late night coding

๐ŸŽฎ Controls

Key Action
WASD / Arrows Move
ESC / P Pause
M Toggle Music
SPACE Manual XP (offline mode)
G Secret: Unlock Hunter's Warglaive

๐Ÿš€ Quick Start

Play Online (No Install)

โ–ถ๏ธ Play Vibe Coder Now

Press SPACE to manually gain XP, or connect the hooks for real coding rewards!

Local Development

# Install dependencies
npm install

# Start the game
npm run dev

# (Optional) Start XP server for live coding rewards
npm run server

Open http://localhost:5173 in your browser.

๐Ÿ–ฅ๏ธ Desktop App

Run Vibe Coder as a native desktop app with system tray integration!

Download

Check the Releases page for pre-built binaries:

  • macOS: .dmg installer (Universal - Intel + Apple Silicon)
  • Windows: .exe installer
  • Linux: .AppImage or .deb

Features

  • System Tray - Lives in your menu bar, always accessible
  • Built-in XP Server - No separate server needed
  • 4 Window Modes - Floating, Corner Snap, Desktop Widget, Mini HUD
  • Global Shortcuts - Cmd/Ctrl+Shift+V toggle, Cmd/Ctrl+Shift+W cycle modes
  • Rich Tray Menu - See game stats at a glance

Build from Source

# Development mode (hot reload)
npm run electron:dev

# Build distributable
npm run electron:build

The desktop app includes a built-in WebSocket server on port 3001, so Claude Code hooks connect automatically!

๐Ÿ”Œ Claude Code Integration

Connect Vibe Coder to Claude Code for real XP gains while coding!

Note: The online demo doesn't support live XP (requires local server). For the full experience, run locally with hooks connected.

Quick Setup:

  1. Clone the repo and run npm install
  2. Start the XP server: npm run server
  3. Copy hooks/on-prompt.sh to ~/.claude/hooks/
  4. Start the game: npm run dev
  5. Code normally - XP flows into the game automatically!

๐Ÿ“– Full Setup Guide - Detailed instructions, troubleshooting, custom integrations

Hook Events

Event XP
Tool Use +10
Response +5
Message +10

The character reacts in real-time to your coding activity with speech bubbles and intelligent auto-play!

๐Ÿ“ Project Structure

vibe-coder/
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ main.js           # Game config, upgrades, legendaries
โ”‚   โ”œโ”€โ”€ scenes/
โ”‚   โ”‚   โ”œโ”€โ”€ BootScene.js  # Procedural texture generation
โ”‚   โ”‚   โ”œโ”€โ”€ TitleScene.js # Menu, upgrades, weapon gallery
โ”‚   โ”‚   โ””โ”€โ”€ ArenaScene.js # Main gameplay, enemies, bosses
โ”‚   โ”œโ”€โ”€ systems/          # Game systems (save, rebirth, shrines)
โ”‚   โ””โ”€โ”€ utils/
โ”‚       โ”œโ”€โ”€ audio.js      # Procedural sound system
โ”‚       โ””โ”€โ”€ socket.js     # WebSocket XP client
โ”œโ”€โ”€ electron/             # Desktop app wrapper
โ”‚   โ”œโ”€โ”€ main.js           # Electron main process
โ”‚   โ”œโ”€โ”€ preload.js        # IPC bridge
โ”‚   โ”œโ”€โ”€ server.js         # Built-in WebSocket server
โ”‚   โ”œโ”€โ”€ tray.js           # System tray integration
โ”‚   โ””โ”€โ”€ windows.js        # Window mode management
โ”œโ”€โ”€ server/               # Standalone XP server
โ”œโ”€โ”€ hooks/                # Claude Code hooks
โ”‚   โ””โ”€โ”€ on-prompt.sh
โ””โ”€โ”€ index.html

๐ŸŽ–๏ธ Legendary Weapons

Ultra-rare permanent unlocks that persist forever:

Legendary Drop Rate Effect
Hunter's Warglaive 0.01% Twin spinning blades
Void Reaper 0.05% Soul-consuming scythe
Celestial Blade 0.03% Triple starlight orbitals

๐Ÿ”ง Tech Stack

  • Phaser 3 - Game engine
  • Vite - Build tool & dev server
  • Electron - Desktop app wrapper
  • Web Audio API - Procedural sound generation
  • Canvas API - Procedural graphics (no external assets!)
  • WebSocket - Real-time XP streaming
  • Node.js - XP server backend
  • electron-builder - Cross-platform packaging

๐Ÿ“‹ Changelog

See CHANGELOG.md for full version history.

๐ŸŽจ Credits

Built with Claude Code - the AI coding assistant.

Hunter's Warglaive artwork inspired by Luu.


Code to Conquer! ๐Ÿš€