8000 GitHub - Niraj-Kamdar/roadscythe: A Bike Racing game ยท GitHub
[go: up one dir, main page]

Skip to content

About

A Bike Racing game

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

ย 

History

18 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ’€ ROADSCYTHE // The Live-Traffic Underground

Live Demo License: AGPL v3 Three.js TypeScript Vite

"Closed tracks are for amateurs. The real war happens in rush hour."

ROADSCYTHE is a 3D motorcycle combat racing game built from scratch with Three.js, TypeScript, and WebGL/WebGPU. Inspired by 90s vehicular combat classics like Road Rash, it pits you against 12 ruthless outlaw bikers on live public arterial freeways packed with civilian commuter traffic, stunt ramps, and aggressive State Highway Patrol interceptors.


๐ŸŽฎ Play Instantly in Your Browser

No downloads, no installations, no plugins required:

๐Ÿ‘‰ https://roadscythe.netlify.app/

Runs on any modern browser with WebGL2 / WebGPU support on macOS, Windows, Linux, Android, and iOS.


โšก Key Features

๐Ÿ Starting Grid & RPM Launch Boost

  • 3D Starting Gantry: Fully animated start tower with countdown signals (READY ๐Ÿ”ด โ†’ STEADY ๐ŸŸก โ†’ GO! ๐ŸŸข).
  • RPM Launch Boost: Hold throttle before the green light to rev your tachometer to 9.5k+ RPM for an instant wheelie launch off the starting line.

โš”๏ธ Proximity-Aware Melee Combat

  • Smart Directional Strikes (Z / X / F): Auto-detects whether an opponent is pulling up on your left or right flank and delivers a brutal strike with your equipped weapon.
  • Directional Shove-Kicks (SPACE): Hip-check and kick rival superbikes sideways into oncoming commercial trucks, civilian traffic, or concrete barriers.
  • Weapon Snatching & Drops: Knock down aggressive rivals or dismount Highway Patrol officers to pick up their dropped weapons right off the asphalt.

๐Ÿ›ฃ๏ธ 3 High-Speed Arterial Circuits

  1. ๐ŸŒด Pacific Coast Circuit (Tier 1 โ€ข 3.5 mi): Coastal sunset sweepers, beachside palm groves, ocean vistas, stunt ramps, and lethal guardrails.
  2. ๐Ÿœ๏ธ Sierra Canyon Loop (Tier 2 โ€ข 4.5 mi): Rugged red-rock mountain pass, sharp chicanes, blind crests, and heavy oncoming logging trucks.
  3. ๐ŸŒƒ Neon Metro Ringway (Tier 3 โ€ข 5.5 mi): Nocturnal cyberpunk multi-lane freeway choked with rush-hour gridlock, commercial box-trucks, and highway patrol pursuit cruisers.

๐Ÿ๏ธ Superbike Garage & Chop Shop Tuning

Choose and customize three distinct high-performance superbikes:

  • ๐Ÿ”ด Argon Interceptor 750: Balanced fighter frame with reliable cornering and high endurance.
  • ๐ŸŸข Kawasaki Viper ZX-10R: Lightweight aerodynamic speed demon capable of 212+ MPH and razor-sharp line changes.
  • ๐ŸŸฃ Diablo Brawler 1200: Heavy armored enforcer with a +42% melee impact bonus for devastating takedowns.

๐Ÿ”ง Tiered Upgrade System

Upgrade 4 core bike components through Tier 1 (Levels 1โ€“5) and unlock the Tier 2 High-Performance Overhaul (Levels 6โ€“10):

  • ๐Ÿš€ Bore & Stroke Tuning: Increases top speed and high-RPM power band.
  • โšก NOS Overdrive Injectors: Boosts surge acceleration, nitro burn rate, and top-end torque.
  • ๐Ÿ›ก๏ธ Tubular Crash Cages: Shields bike integrity against civilian vehicle and truck collisions.
  • โš”๏ธ Heavy Steel Weaponry: Amplifies melee impact impulse, stun duration, and takedown damage.

๐Ÿ—ก๏ธ Street Weapons Arsenal

Weapon Damage Range Description
๐Ÿ‘Š Titanium Knuckles 15 3.2m Standard street brawling gloves with rapid recovery.
๐Ÿ”ง Steel Crowbar 29 3.9m Heavy leverage weapon capable of knocking riders off their bikes.
โ›“๏ธ Heavy Iron Chain 35 4.4m Extended reach weapon for whipping opponents from safe drafting distance.
โšก Police Volt Baton 42 4.1m High-voltage tactical stun weapon dropped by Highway Patrol officers.
๐Ÿ—ก๏ธ Plasma Katana 50 4.6m Rare outlaw weapon delivering lethal one-shot strikes.

๐Ÿชž Tactical Rear-View Mirror & Proximity Radar

  • Live 3D Rear-View Mirror: Dedicated secondary rendering pipeline displaying tailing opponents, civilian traffic, and sirens behind you in real time.
  • Proximity Radar: Overhead tactical display tracking opponent distance, police interceptors, and oncoming roadblocks.
  • FPV Helmet Cockpit View: Toggle instantly between third-person chase cams and an authentic first-person visor view complete with handlebars and functional digital dash.

๐Ÿ“ป Outlaw Radio & Tactical Police Scanner

  • Live contextual radio comms featuring rival biker taunts, crash reactions, and Highway Patrol dispatch chatter ("All units, suspect is splitting lanes at 150 MPH, authorized to ram!").

๐Ÿ”Š Procedural Web Audio Engine

  • Built entirely with the native Web Audio APIโ€”zero external audio files required for core sound effects.
  • Dynamic pitch-shifted motorcycle engines with realistic rev cycles, tire squeals, slipstream wind noise, collision crunches, siren doppler effects, and crowd reactions.

๐Ÿ•น๏ธ Controls

Action Keyboard Alternative / Notes
Accelerate / Gas W โ†‘ (Hold during countdown to rev engine)
Brake / Reverse S โ†“
Steer Left / Right A / D โ† / โ†’
Smart Proximity Strike Z / X / F Auto-detects closest rival on left or right
Smart Proximity Kick SPACE Shoves adjacent bikes into traffic / guardrails
Nitro Boost Shift Rocket boost for passing and ramp jumps
Camera View Toggle C / V Cycles between Chase Cam and FPV Helmet Cockpit
Highway Recovery / Reset R Re-aligns bike onto centerline if stuck or off-road
Tactical Comms Toggle U Mute/unmute police scanner and biker chatter
Audio Mute M Toggles procedural sound engine
Performance HUD P Real-time FPS, frame latency, draw calls, and triangle counters
Graphics Engine Mode G Switch between WebGL2 and WebGPU backends
Post-Process Bloom B Toggle neon glow / crisp 4x MSAA mode

๐Ÿ› ๏ธ Tech Stack & Architecture

  • Rendering Engine: Three.js (r170) utilizing WebGL2 with experimental WebGPU support.
  • Language: TypeScript (Strict Mode).
  • Build System: Vite 6.
  • Audio: Custom procedural synthesis engine built on the browser Web Audio API.
  • Effects: Custom GPU particle systems, procedural speed lines, screen-space damage flashes, and Canvas Confetti.

Project Structure

argon-game/
โ”œโ”€โ”€ index.html          # Main HTML entrypoint with HUD, Outlaw Intro Crawl, and Chop Shop UI
โ”œโ”€โ”€ package.json        # Dependencies and build scripts
โ”œโ”€โ”€ tsconfig.json       # Strict TypeScript configuration
โ”œโ”€โ”€ vite.config.ts      # Vite configuration
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ main.ts         # Core game loop, input handling, physics, AI riders, and state management
โ”‚   โ”œโ”€โ”€ track.ts        # Procedural 3D track curve generation, road geometry, and traffic spawning
โ”‚   โ”œโ”€โ”€ models.ts       # Procedural 3D bike, rider, traffic, and scenery mesh construction
โ”‚   โ”œโ”€โ”€ audio.ts        # Web Audio API procedural synthesizer (engines, impacts, sirens, FX)
โ”‚   โ”œโ”€โ”€ particles.ts    # Spark sprays, smoke trails, exhaust nitro flames, and collision particles
โ”‚   โ”œโ”€โ”€ textures.ts     # Procedural canvas textures (asphalt, road lines, carbon fiber, decals)
โ”‚   โ”œโ”€โ”€ config.ts       # Tuning parameters, bike stats, upgrade curves, and game constants
โ”‚   โ”œโ”€โ”€ types.ts        # TypeScript interfaces for bikes, riders, weapons, and track segments
โ”‚   โ””โ”€โ”€ style.css       # Retro-arcade HUD styling, showroom UI, and responsive layout
โ””โ”€โ”€ LICENSE             # GNU Affero General Public License v3.0 (AGPL-3.0)

๐Ÿš€ Local Development

Prerequisites

1. Clone the repository

git clone https://github.com/your-username/argon-game.git
cd argon-game

2. Install dependencies

npm install
# or
bun install

3. Start local development server

npm run dev
# or
bun run dev

Open your browser to http://localhost:5173/ (or the URL displayed in your terminal).

4. Build for production

npm run build

The optimized static production bundle will be generated in the dist/ folder, ready for deployment to any static web host (Netlify, Vercel, Cloudflare Pages, GitHub Pages).


๐Ÿ“œ License

This project is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0).

See the LICENSE file for the full license text. Under this license:

  • You are free to run, study, modify, and distribute this software.
  • If you run a modified version on a server or make it available over a network, you must provide users with access to the corresponding source code under the terms of the AGPL-3.0.

About

A Bike Racing game

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0