- JavaScript 56.7%
- TypeScript 22.3%
- CSS 17.9%
- GLSL 2.8%
- HTML 0.3%
| public | ||
| src | ||
| .gitignore | ||
| bun.lockb | ||
| eslint.config.js | ||
| index.html | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| vite.config.js | ||
Mario Kart 3.js - JavaScript/WebGL Mario Kart Game
Demo Project: This is a demo project that brings the magic of Mario Kart to your browser using Three.js and WebGL technology.
Features
- Modern homepage with animations using GSAP
- Both regular game mode and Time Trial mode
- Enhanced UI with game information display
- Realistic driving physics with drift mechanics
- Particle effects for drift, boosts, and more
- Sound effects and background music
- Responsive design that works on desktop and mobile
- Touch controls for mobile devices
How to Install
- Clone the repository:
git clone https://github.com/Nathan-Richard-21/Mario-Kart-game.git
cd Mario-Kart-game
- Install dependencies:
npm install
# or
bun install
- Start the development server:
npm run dev
# or
bun run dev
- Open your browser and navigate to
http://localhost:5173(or the URL displayed in your terminal)
Game Controls
Keyboard/Mouse
- W or ↑ - Accelerate
- A/D or ←/→ - Steer left/right
- Space - Drift (Hold and steer to maintain drift, release for mini-turbo)
- E - Use current item
- R - Reset position
Mobile
- Joystick on left side of the screen - Move/Steer
- Buttons on right side - Special actions (jump, use items)
Game Modes
Regular Mode
- Classic racing experience with regular controls
Time Trial Mode
- Challenge yourself to beat your own record
- Tracks your best lap and total time
Development Roadmap
- Design modern landing page
- Add Time Trial mode
- Add game controls modal
- Add countdown before race start
- Implement background music and sound effects
- Add smokes and particle effects
- Add more items
- Add texture to the flame shaders
- Add curve/length modifiers to drift particles
- Add Skid marks
- Add wind screen effect when boosting
- Design additional tracks and checkpoints
- Add Minimap
- Add more items:
- Tennis ball
- Bomb
- Red shell
- Treats
Project Information
This project is a non-profit fan project that recreates the fun of Mario Kart using web technologies. It's built with Three.js, React, and WebGL, demonstrating what's possible in modern web browsers.
The Mario Kart intellectual property is owned by Nintendo Co., Ltd. This project is not affiliated with Nintendo and is created for educational and demonstration purposes only.
License
MIT License
Copyright (c) 2025 Infinity Cybertech
This is a work by Infinity Cybertech.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
