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

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit changes (git commit -m 'Add amazing feature')
  4. Push to branch (git push origin feature/amazing-feature)
  5. 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

  1. 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
Share this project:

Updates