LibMGE is a powerful graphical user interface library for developing 2D programs and games.
Project description
LibMGE
LibMGE is a powerful and easy-to-use graphical user interface library for developing 2D programs and games in Python.
✨ Features
- 🎮 Simple and intuitive API for 2D game development
- 🖼️ Built-in support for images and animated GIFs
- ⚡ Frame rate control and performance monitoring
- 🎨 Material and texture system
- ⌨️ Keyboard and event handling
- 🪟 Flexible window management
📦 Installation
pip install LibMGE
🔧 Dependencies
🚀 Quick Start
Here's a simple example that displays an animated GIF:
import LibMGE
# Initialize the library
LibMGE.init()
# Create a window
window = LibMGE.Window(
resolution=(500, 500),
flags=LibMGE.WindowFlag.Shown
)
window.frameRateLimit = 60
# Create a 2D object and load a GIF
gif = LibMGE.Object2D((0, 0), 0, (500, 500))
gif.material = LibMGE.Material(
LibMGE.Texture(LibMGE.LoadImage("./image.gif"))
)
# Main loop
while True:
LibMGE.update()
window.update()
window.title = f"LibMGE OpenGif | FPS: {window.frameRate}"
# Exit on quit event or F1 key
if LibMGE.QuitEvent() or LibMGE.keyboard(LibMGE.KeyboardButton.KeyF1):
exit()
gif.drawObject(window)
📚 Documentation
For detailed documentation and tutorials, visit:
- Official Documentation: docs.libmge.org
- Website: libmge.org
🔗 Links
- PyPI Package: pypi.org/project/LibMGE
- Source Code: github.com/MonumentalGames/LibMGE
- Author Website: lucasguimaraes.pro
📝 License
LibMGE is distributed under the zlib License. This license allows you to freely use it in any software, whether personal, commercial, or open-source projects.
💻 Compatibility
LibMGE officially supports Windows. With some modifications, it can also run on:
- 🐧 Linux (experimental)
- 🤖 Android (experimental)
Note: For best stability and performance, we recommend using LibMGE on Windows. Community contributions for better cross-platform support are welcome!
👤 Author
Lucas Guimarães
- Website: lucasguimaraes.pro
- Email: commercial@lucasguimaraes.pro
Current Version: 1.0.0b12
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 libmge-1.0.0b12.tar.gz.
File metadata
- Download URL: libmge-1.0.0b12.tar.gz
- Upload date:
- Size: 323.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8853954674e2cc3e0b6c85609e6d0af1639e9ea089bb58236ac7f5dbbc321c94
|
|
| MD5 |
20972eae0997f76d83ee552b981a9f07
|
|
| BLAKE2b-256 |
425bb7a3438dbd11fc5906a2de460049b09e54b5b6fc7ab789cdfdec08f0df3e
|
File details
Details for the file libmge-1.0.0b12-py3-none-any.whl.
File metadata
- Download URL: libmge-1.0.0b12-py3-none-any.whl
- Upload date:
- Size: 338.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
59b1035ccd6360233532f02e0545f11a2cf229ec7a39ac3a0959c84d3d139c4e
|
|
| MD5 |
b4ddb32bdc14f740f9b1126bba60770a
|
|
| BLAKE2b-256 |
858863cc51ac4a480aeb500b95f0c473f6ac67437d28e68d7f4f2f4582aec673
|