Skip to content

bentted/slugrace

Repository files navigation


SlugRace 🐌

SlugRace is an exciting and fun Python-based game built using the Kivy framework. It combines Python and KvLang to deliver an engaging racing experience where players bet on slugs and watch them race to victory!


Features

  • Interactive Betting System: Place bets on your favorite slug and see if they win the race.
  • Dynamic Gameplay: Real-time slug racing simulations with randomized results.
  • User-Friendly Interface: Built using Kivy for a smooth and responsive user experience.
  • Customizable Settings: Tailor the game to your preferences with adjustable configurations.
  • Modular Design: Organized codebase with reusable components for easy development and maintenance.

Repository Structure

File/Folder Description
main.py The entry point for the game, containing the primary logic and application lifecycle.
accident.py Handles random events or accidents occurring during the race.
bets.py Manages the betting system, allowing users to place bets on their chosen slugs.
race.py Contains the logic for simulating slug races.
settings.py Configuration file for game settings and user preferences.
widgets.py Custom widgets used throughout the game interface.
.kv Files Define the UI structure and design using KvLang.
assets/ Directory for game assets such as images, sounds, or other media.
__pycache__/ Auto-generated directory for Python bytecode files.

How to Run

  1. Clone the Repository:

    git clone https://github.com/bentted/slugrace.git
    cd slugrace
  2. Install Dependencies: Make sure Python is installed. Install the required dependencies using:

    pip install kivy
  3. Run the Game: Execute the following command to start the game:

    python main.py
  4. Enjoy the Game: Follow the on-screen instructions to place bets, start races, and have fun!


Technologies Used

  • Python (55.8%): The primary programming language used for game logic and backend systems.
  • KvLang (44.2%): Used to create responsive and visually appealing user interfaces.

Contribution

Contributions are welcome! If you’d like to contribute:

  1. Fork the repository.
  2. Create a feature branch.
  3. Submit a pull request.

Fun Fact

Did you know? Slugs can stretch to 20 times their normal length when racing (in this game, at least)!


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published