An endless runner game inspired by Crossy Road, built with React Three Fiber. Navigate through procedurally generated levels, avoid obstacles, and collect corn to save your progress!
- Objective: Survive as long as possible by crossing obstacle lanes and collecting corn
- Controls: Arrow keys or on-screen buttons to move (↑↓←→)
- Corn System: Collect corn to create checkpoints - if hit, you respawn at your last checkpoint
- Scoring: Advance through rows to increase your score
- Install dependencies:
npm install - Start development:
npm run dev - Open browser and play!
CrossyRoad/
├── src/
│ ├── components/ # React components
│ │ ├── Game.tsx # Main game component
│ │ ├── Player.tsx # Player character
│ │ ├── Map.tsx # Level generation
│ │ └── UI.tsx # User interface
│ ├── logic/ # Game logic
│ │ ├── collision.ts # Collision detection
│ │ ├── mapLogic.ts # Level generation
│ │ └── playerLogic.ts # Player movement
│ ├── store/ # State management
│ │ ├── gameStore.ts # Game state
│ │ └── mapStore.ts # Map state
│ ├── sound/ # Audio system
│ │ └── playBackgroundMusic.ts
│ └── utils/ # Utilities
├── public/audio/ # Audio files
├── index.html # Main HTML
└── package.json # Dependencies- Heroku: Play Crossy Road
- GitHub: View Source
- Always collect corn when you see it - it's your lifeline!
- Plan your moves - you can only queue one move at a time
- Watch obstacle patterns - they move at different speeds
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
This project is licensed under the MIT License - see the LICENSE file for details.