Skip to content

rolo145/turnOrDie

Repository files navigation

🐍 Turn or Die

A ridiculously fun multiplayer snake game where you slither around, nom food, and try not to crash into stuff. Built for the lolz with Nuxt 4 and Socket.io.

What's Cool About It

  • Multiplayer Chaos: Battle friends (or strangers) in real-time
  • Simple Controls: Just turn left/right and BOOST
  • Power-ups That Actually Matter:
    • 🌟 Go invincible and flex on everyone
    • 🐛 Get your controls reversed (lmao good luck)
    • 🚀 GOTTA GO FAST
    • 🐌 Or... not so fast
  • Actually Pretty:
    • Custom snake heads and colors
    • Smooth trails with fancy effects
    • Minimap so you don't get lost
  • Audio: Music and sound effects (toggle if annoying)
  • Leaderboard: See who's winning (probably not you)
  • Works Everywhere: Responsive canvas that adapts to your screen

Tech Stack

Nuxt 4 + Socket.io + TypeScript + Tailwind CSS 4 + Nuxt UI

(Basically the cool kids stack)

Quick Start

  1. Install stuff:
npm install
  1. Run it:
npm run dev
  1. Open http://localhost:3000 and play!

Want to play with friends on your network?

npm run lan

Then connect to http://[your-ip]:3001 from other devices

Build for Production

npm run build
npm run preview

How to Play

Controls:

  • ← / → - Turn your snake
  • Space - BOOST (costs points but worth it)
  • Enter - Respawn after dying
  • H - Hide/show controls

The Deal:

  1. Your snake moves forward automatically (no brakes!)
  2. Eat food to grow and score points
  3. Don't crash into trails (yours or others')
  4. Boosting makes you fast but burns points
  5. When you die, smash Enter to try again

Power-ups:

  • Immortality - You're temporarily unstoppable
  • 🐛 Bug - Your controls get reversed (RIP)
  • 🚀 Speed - ZOOM ZOOM
  • 🐌 Slow - Time to take it easy

Notes

This is a personal fun project. The code might be messy. The bugs might be features. That's part of the charm.

Built with ❤️ and way too much caffeine.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors