
Road Survival โ Multiplayer Racing Game

Road Survival is an advanced multiplayer racing game built with React and integrated with GenLayer blockchain. Featuring real-time multiplayer racing, diverse car selection, and immersive gameplay with sound effects and realistic environments.
Key Features
๐ฎ Game Modes
๐ Car Selection System
๐ Sound Effects
๐ฒ Realistic Environment
๐จ Modern UI/UX
Technology Stack
Technologies Used
**Frontend:** React 18 + Vite + Tailwind CSS
**Blockchain:** GenLayer Studionet
**Real-time:** Socket.IO WebSocket
**Game Engine:** HTML5 Canvas + JavaScript
**Build Tool:** Vite (fast HMR)
Game Controls
Keyboard Controls
- โธโ โ Arrow Keys - Move left/right between lanes
- โธA/D Keys - Alternative movement
- โธSpace - Start game (when ready)
Game Mechanics
- โธAvoid enemy cars - Collision = game over
- โธEnemy variety - Enemy cars have random types and colors, different from player car
- โธSpeed increase - Gets faster as score increases
- โธEngine sound - Dynamic engine sound changes with speed
- โธCollision sound - Impact sound when crashing
- โธRestart - Click "Main Lagi" to instantly restart after game over
Blockchain Integration
The game integrates with GenLayer blockchain for score tracking and multiplayer sessions. Smart contracts store player scores and game sessions on-chain, ensuring transparency and immutability.
Contract Name: RoadSurvivalGame
Network: GenLayer Studionet
Storage: String-based key-value pairs for sessions and scores
GenLayer-Specific Features
This project demonstrates full integration with GenLayer's unique capabilities:
๐ง LLM Integration
๐ Web Fetching
โ๏ธ Equivalence Principle
Mobile Support
The game features responsive design that works on all devices:
- โธDesktop: Full 12-column grid layout
- โธTablet: 8-column grid with adjusted spacing
- โธMobile: Single column, touch-friendly controls
๐ Source Code
Built by dhozil for the gaming and blockchain community ๐
