Robot Racing - AI Racing Game
A 2D side-scroller racing game where bipedal robots race against each other. Built with Godot 4, featuring AI training, dynamic track generation, and competitive racing mechanics.
Game Overview
Train an AI to control a bipedal robot in a high-speed racing competition. Outsmart your opponent's AI to become the champion.
Key Features
- Bipedal Robot Controls - Walk, run, jump, crouch, and climb with realistic physics
- Trainable AI Opponents - AI learns from your racing strategies
- Competitive Racing - Race against AI in 3-lap competitions
- Dynamic Checkpoint System - Moving checkpoints with scrolling track
- Real-time HUD - Lap times, position tracking, and robot status
- Parallax Background - Immersive scrolling environments
Technical Stack
- Engine: Godot 4.2+
- Language: GDScript
- AI: Reinforcement Learning with custom reward system
- Physics: Godot Physics 2D
Project Structure
res:// ├── scenes/ # Game scenes │ ├── race_world.tscn # Main race scene │ └── agent.tscn # Robot agent scene ├── scripts/ # Game scripts │ ├── race_world.gd # Race coordinator │ ├── agent.gd # Robot controller │ ├── race_hud.gd # UI management │ ├── race_camera.gd # Camera system │ ├── checkpoint_system.gd # Checkpoint logic │ ├── race_tracker.gd # Race progress tracking │ ├── race_result.gd # Race results │ ├── game_manager.gd # Scene management │ ├── agent_brain.gd # AI decision making │ └── track_generator.gd # Track generation └── assets/ # Game assets ├── backgrounds/ # Parallax backgrounds ├── sprites/ # Robot and track sprites └── audio/ # Sound effects and music
Contributing
- Fork the repository
- Create a feature branch (git checkout -b feature/amazing-feature)
- Commit changes (git commit -m 'Add amazing feature')
- Push to branch (git push origin feature/amazing-feature)
- Open a Pull Request
Contribution Guidelines
- Follow GDScript style guide
- Add comments for complex logic
- Update documentation for new features
- Test thoroughly before submitting
Getting Started
Prerequisites
- Godot Engine 4.2 or higher
- Git (for cloning)
Installation
- Clone the repository
bash git clone https://github.com/Silloh23/robot-racing.git cd robot-racing
Contact
GitHub: Silloh23, cwl-1206, Snorffman
Built With
- gdscript
- godot
Log in or sign up for Devpost to join the conversation.