A browser-based arcade game built with React, Vite, and HTML5 Canvas. Dodge enemies, collect coins, and enjoy smooth animations and particle effects in this modern web game.
- Real-time gameplay with keyboard controls (WASD/Arrow keys)
- Custom 2D graphics and animations using HTML5 Canvas
- Particle effects, glowing sprites, and screen shake for enhanced visuals
- Responsive UI built with React
- Fast development and build process with Vite
- Easily extensible game engine
- React (JSX)
- Vite
- JavaScript (ES6+)
- HTML5 Canvas
- Node.js & npm
- Git & GitHub
- Node.js (v16 or newer recommended)
- npm
- Clone the repository:
git clone https://github.com/leooladimu/dodgeGame.git cd dodgeGame - Install dependencies:
npm install
- Start the development server:
npm run dev
- Open your browser and go to http://localhost:3000
- Move your player (tan rune) with the arrow keys or WASD
- Collect green coins to increase your score
- Avoid red star enemies
- Collect enough coins to win; colliding with an enemy ends the game
App.jsx– Main React appGameEngine.jsx– Game engine and game logicmain.jsx– Entry pointvite.config.js– Vite configurationpackage.json– Project metadata and scripts
MIT
Enjoy playing and feel free to contribute or fork the project!