Wame Game Engine
Project description
Wame
Simple, Pythonic, Pygame Wrapper
- Latest Version
v0.8.0 - Supports Python
3.7+
What is Wame?
Wame was created as a backend Pygame wrapper, where all backend (and tedious) code is left in the background. This allows for events to be dispatched in specific event methods rather than in a messy manner like default Pygame and most other engine program loops. This is primarily because handling the game backend and frontend in a singular file (or a couple) can be an eyesore, and Wame fixes this issue.
What are Wame's features?
- Encapsulates Pygame's backend game programming
- Dispatches and calls methods needed to render and update game code, while executing events in a structured manner
- Allows on-demand scene switching (more about this later)
- Provides basic objects like font rendering (text), drawing, buttons, etc. (a pain to always make on many projects)
How do I use Wame?
- Install
WameviaPyPI:pip install wame-engine - Import it into your program using
import wame
Documentation
You can find our documentation here.
Getting Started
After installation:
- Instantiate a new
Engine(runs the game loop and dispatches events) - Define a new
~Scenesubclass (manages your objects and logic)
import wame
class BasicScene(wame.Scene):
def on_init(self, *args, **kwargs) -> None:
...
def on_render(self) -> None:
...
def on_update(self) -> None:
...
engine: wame.Engine = wame.Engine("Basic Game Window", wame.Pipeline.PYGAME)
engine.register_scene("Basic", BasicScene)
engine.set_scene("Basic")
engine.start()
This will create a fullscreen, black window. You can close it by pressing ALT+F4.
- If you'd like to see more functional examples, visit our Tutorials section of our documentation
Contributing
Thanks for your interest in contributing to our game engine! Contributions are welcome, as they can only help us get to where we want to see wame go!
Whether you want to submit a bug report, fix a bug, add a new feature, remove parts of the program, we welcome your contributions.
How to Contribute
- Fork this repository
- Fork this repository to your own GitHub account by clicking the "Fork" button at the top-right of this page.
- Clone your fork
- Clone the forked repository to your local machine using the following command:
git clone https://github.com/your-username/your-fork.git
- Create a new branch
- Before making any changes, create a new branch with a descriptive name for your work/changes. For example:
git checkout -b feature-name
- Make your changes
- Implement your changes, whether it's fixing bugs, improving documentation, or adding new features.
- Be sure to write clear, concise commit messages explaining the changes you've made.
- Commit your changes
- Once your changes are ready, commit them to your local branch:
git add .git commit -m "Add feature-name"
- Push your changes
- Push your changes to your forked repository:
git push origin feature-name
- Create a pull request
- Open a pull request on the original repository from your fork.
- Ensure that your pull request explains the purpose of the changes and any relevant context.
- If applicable, include links to relevant issues.
Reporting Bugs
- If you find a bug or issue, please open an issue on the
Issuespage above. - Be sure to provide detailed information to help us understand and reproduce the problem.
Feature Requests
- We welcome suggestions for new features.
- If you have an idea, please open an issue on the
Issuespage above to discuss it first. - This ensures that we're all on the same page and helps us prioritize improvements.
Thanks for Contributing
Your contributions make this project better and more useful for everyone! Thank you for taking the time to improve this project!
License
This project is licensed under the MIT License. Copyright © 2025 WilDev Studios. All rights reserved.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wame_engine-0.8.0.tar.gz.
File metadata
- Download URL: wame_engine-0.8.0.tar.gz
- Upload date:
- Size: 38.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce8c45050d3fbac74634457cf3b9764678c66bc2b32e1d7ce18dfc9533ad57b2
|
|
| MD5 |
8faccffa998d41a1dd3a12d6aca6dbcf
|
|
| BLAKE2b-256 |
d6800032a277c5d9b71914d1bfdbcd90511d9943f8540923b69473c73455f300
|
File details
Details for the file wame_engine-0.8.0-py3-none-any.whl.
File metadata
- Download URL: wame_engine-0.8.0-py3-none-any.whl
- Upload date:
- Size: 45.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be5d7c481de0311baac65d97e04509b637f78117db03db350c4413510ddf3979
|
|
| MD5 |
e08ea6054ba57e514b7c2ba8bc32045c
|
|
| BLAKE2b-256 |
341ffc65fcce2c6421cbe50fc53a3468e9085268e169d2f5cd9778651fe828bb
|