Skip to content

A simple 3D first-person game with bunnyhopping mechanics and procedural world generation built using the Ursina Engine.

Notifications You must be signed in to change notification settings

BurnyCoder/bunnyhopping

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

3D Bunnyhopping Game

A simple 3D first-person game with bunnyhopping mechanics built using the Ursina Engine.

game

Requirements

  • Python 3.7+
  • Ursina Engine

Installation

Install the required packages:

pip install ursina

Running the Game

Run the main entry point:

python main.py

Controls

  • W, A, S, D: Move forward, left, backward, and right
  • Mouse: Look around
  • Space: Hold to bunnyhop continuously (you must be moving)

Customization

You can modify the following parameters in the controllers/bunny_hop_controller.py file to adjust the bunnyhopping mechanics:

  • max_speed_multiplier: Maximum speed multiplier (default: uncapped)
  • per_hop_multiplier_amount: How much speed boost you get per hop (default: 0.25)
  • diminish_value: Regular speed decay rate (default: 0.05)
  • long_distance_diminish: Reduced decay rate for long-distance travel (default: 0.01)
  • jump_cooldown_max: Time between jumps (default: 0.2)

Project Structure

The codebase follows a modular structure:

  • main.py: Entry point for the game
  • game.py: Main game class that initializes and manages the game
  • controllers/: Player movement and control
    • bunny_hop_controller.py: Bunnyhopping mechanic implementation
  • world/: Environment and terrain generation
    • environment.py: Procedural world generation
  • ui/: User interface elements
    • hud.py: Heads-up display elements like speed and distance

About

A simple 3D first-person game with bunnyhopping mechanics and procedural world generation built using the Ursina Engine.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages