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.
- 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.
Note
These sliders are modified version of https://github.com/pygame-examples/pygame-examples/blob/main/pgex/examples/horizontal_slider .
- 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.
- Installation: Ensure Python and PyGame are installed.
pip install pygame
- Download: Clone or download the the repo.
git clone https://github.com/Shaeikh/JumpShot-Odyssey
- Integration: Import modules and customize elements.
- Usage: Create buttons, sliders, screens, and handle interactions.
# 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(
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,
)
Created by Shaeikh. Use, modify, and share with or without credit idc.
This project is under the MIT License.