PyDiamond
PyDiamond engine is a game engine for Python game developers.
Install / Use
/learn @francis-clairicia/PyDiamondREADME
PyDiamond
PyDiamond engine is a game engine for Python game developers.
The framework uses the popular pygame library.
Installation
The installation can be done using pip:
pip install pydiamond-engine
Usage
Example with the minimal requirements:
from pydiamond.window.display import Window
def main() -> int:
w: Window = Window(title="my window", size=(800, 600))
with w.open():
while w.loop():
for event in w.process_events():
# do some stuff
pass
w.clear()
# draw your objects
w.refresh()
return 0
if __name__ == "__main__":
exit(main())
This code will open a small window.
Documentation
Coming soon. :)
Development
Dependencies
PyDiamond is developed based on pygame and Python (obviously). In addition, some features of pygame are available with a specific version of the SDL.
Dependency version:
- CPython >= 3.13
- pygame >= 2.6.1
- SDL >= 2.0.16 (vendored in pygame)
- SDL_image >= 2.0.0 (vendored in pygame)
- SDL_mixer >= 2.0.0 (vendored in pygame)
- Other python dependencies referred by
pyproject.toml
Setup
Use the following command to install all the necessary dependencies
python -m devtools repo
Credits
Vendored-in packages
- Gradient module by DR0ID
- OrderedSet collection by rspeer
License
This project is licensed under the terms of the GNU General Public License v3.0.
Related Skills
node-connect
343.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
claude-opus-4-5-migration
90.0kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
frontend-design
90.0kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
model-usage
343.1kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
