Skip to content

A Graphical User Interface for python game making lib pygame

License

Notifications You must be signed in to change notification settings

Shaeikh/JumpShot-Odyssey

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GUI

image

image

image

image

Enhance your PyGame projects with the Stylish PyGame GUI. This GUI includes buttons, sliders, background soundtracks, smooth screen transitions, and more, all designed to elevate your user's experience.

Features

  • Handler: A most common and easy-to-use handler for the code
  • Buttons: Stylish buttons with animations for seamless user interaction.
  • Sliders: Dynamic sliders for settings like volume or brightness.
  • Background Soundtrack: Add ambiance with an integrated background soundtrack.
  • Smooth Transitions: Effortlessly transition between screens or levels.
  • Interactive: Engage users with interactive elements and animations.
  • Themes: Customize themes to match your game's aesthetics.

Getting Started

  1. Installation: Ensure Python and PyGame are installed.
pip install pygame
  1. Download: Clone or download the the repo.
git clone https://github.com/Shaeikh/JumpShot-Odyssey
  1. Integration: Import modules and customize elements.
  2. Usage: Create buttons, sliders, screens, and handle interactions.

Buttons

# This is a basic button, for all params check the file
button = Button(
        pygame.Rect(x, y, width, height),
        "Button title",
        button_color,
        hover_color,
        text_color,
        font,
        border_radius, # Radius of button border 
        label="Label" # Optional, this will be displayed beside the button
    )

Slider

slider = Slider(
        rect,
        step=1, # Value which will be added or removed each time the slider is moved
        callback=lambda val: function(), # This returns the value of the slider 
        slider_color=color,
        color=color,
    )

Credits

Created by Shaeikh. Use, modify, and share with or without credit idc.

License

This project is under the MIT License.

About

A Graphical User Interface for python game making lib pygame

Resources

License

Stars

Watchers

Forks