Skip to content

Mte90/avoidrain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AvoidRain - 3D Endless Runner

License

WIP: A 3D browser game where you run under balconies to avoid the rain!

Image

🎮 How to Play

Goal: Survive as long as possible by staying dry under building balconies.

Controls:

  • Keyboard:
    • A / Left Arrow → Move left
    • D / Right Arrow → Move right
    • Enter / Space → Start/Restart game
  • Touch (mobile):
    • Swipe left/right → Move
    • Tap to start

Mechanics:

  • Rain fills the wet meter (green/red bar in top-left)
  • Under balconies, the wet meter drains
  • If it reaches 100% → Game Over!
  • Cars on the road push you back and increase wetness
  • Difficulty increases over time (fewer balconies, more rain, more cars)

🚀 Local Setup

Prerequisites

  • Node.js (version 16 or higher)
  • npm (included with Node.js)

Installation

# Clone the repository (if you haven't already)
cd avoidrain

# Install dependencies
npm install

Start Development Server

# Start the development server
npm run dev

The game will be available at: http://localhost:5173

🛠️ Tech Stack

  • Three.js - 3D rendering
  • Vanilla JavaScript - No UI framework

📝 Credits

Built with OpenCode using Regolo.AI models.

About

A 3D browser game where you run under balconies to avoid the rain!

Topics

Resources

License

Stars

Watchers

Forks

Contributors