Skip to content

hmbanan666/chatgame

Repository files navigation

Chatgame

A procedurally generated world driven by Twitch chat. Viewers type commands to control pixel characters, travel with a steam wagon through biomes, chop trees, complete quests, and collect unique characters β€” all live on stream.

Screen

  • Play β€” project website
  • Watch β€” live development and gameplay on Twitch
  • Roadmap β€” project history and future plans

How it works

  • Viewers join via Twitch chat β€” a character spawns on screen
  • The wagon travels through procedurally generated biomes (green, blue, stone, teal, toxic, violet)
  • Characters chop trees, gather resources, complete quests from NPCs
  • Donations and channel point redemptions affect the game in real time (refuel, sabotage, speed boost)
  • Players earn XP, level up, collect characters, and exchange coupons for coins

Monorepo structure

apps/
  web-app/          Nuxt β€” game UI, streaming overlays, API, WebSocket server
packages/
  database/         Drizzle ORM β€” PostgreSQL schema and repositories
  game/             PixiJS game engine β€” rendering, camera, ticker
  sprites/          Indexed pixel sprite system β€” characters, trees, wagon, bushes
  types/            Shared TypeScript types
  locale/           i18n (Russian, English)

Stack

  • PixiJS β€” WebGL canvas rendering
  • Vue + Nuxt β€” frontend framework
  • Drizzle β€” database toolkit for PostgreSQL
  • pnpm β€” package manager with workspace support
  • Native Twitch and Donation Alerts clients via WebSocket/fetch
  • Custom indexed pixel sprite system with palette swapping (Resurrect 64)

Development

git clone https://github.com/hmbanan666/chatgame
pnpm i
pnpm dev

Requires Node.js >= 24 and pnpm >= 10.33.

License

MIT

About

Procedurally generated Twitch-driven world β€” viewers control pixel characters, travel with a steam wagon, chop trees, complete quests, and collect unique characters through chat commands πŸͺ“β›οΈπŸŒ±πŸ€

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors