Skip to main content

2D Python game engine built on pygame and pymunk

Project description

⚙️ Cogworks Engine

Cogworks Engine is a small, personal 2D Python game engine I created for fun. It’s designed to make building 2D games in Python quick, enjoyable, and structured, using Pygame for rendering and input, and Pymunk for physics simulation.

📘 Documentation: cog-works-engine-docs.vercel.app


🚀 Features

🧩 Component-Based GameObjects – Build flexible and reusable entities with custom behaviour.

⚙️ Physics Integration – Built-in Rigidbody2D and Collider components powered by Pymunk for realistic 2D physics.

🧲 Trigger Collider – Independent collision detection for triggers and interactions without physics simulation.

💨 Particle Effects – Customisable particle systems for explosions, muzzle flash, blood effects.

🔊 Audio Source – Play and control sound effects or background music through component-based audio sources.

🧠 Script Component – Attach Python scripts directly to GameObjects to define custom behaviour and logic.

🎬 Scene Management – Manage levels, menus, and transitions with ease.

🎮 Input Management – Unified keyboard and mouse input handling.

🧱 Extensible & Modular Design – Add new components, systems, and tools without breaking the engine’s core structure.


📦 Installation

Install via pip:

pip install cogworks

🕹️ Quick Start

Here’s a minimal example to get started:

from cogworks import Engine

# Create a new engine instance
engine = Engine(
    width=800,
    height=600,
    caption="My Game",
    fps=60,
)

# Run the engine
engine.run()

📚 Learn More

Visit the full documentation for examples and guides: 👉 https://cog-works-engine-docs.vercel.app


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cogworks-0.2.14.tar.gz (244.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cogworks-0.2.14-py3-none-any.whl (254.7 kB view details)

Uploaded Python 3

File details

Details for the file cogworks-0.2.14.tar.gz.

File metadata

  • Download URL: cogworks-0.2.14.tar.gz
  • Upload date:
  • Size: 244.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.6

File hashes

Hashes for cogworks-0.2.14.tar.gz
Algorithm Hash digest
SHA256 051b34bc984d58d7bd9dcbe115bfc59fac9a176da4324203d97384f8d660976f
MD5 dc5a2d236eafd9030ce3ff1ca604b50f
BLAKE2b-256 769c372a22389813736b4525f61c99abbda77af03be15aa10ed5c08e13abb63d

See more details on using hashes here.

File details

Details for the file cogworks-0.2.14-py3-none-any.whl.

File metadata

  • Download URL: cogworks-0.2.14-py3-none-any.whl
  • Upload date:
  • Size: 254.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.6

File hashes

Hashes for cogworks-0.2.14-py3-none-any.whl
Algorithm Hash digest
SHA256 2aed91f1b4c1f69d19546c8ffd8ecbee6e9ae291d0f59c3b550d3a0555caf2e0
MD5 65ad4ceee5006ef1bd4e20442906540d
BLAKE2b-256 cd19c975e66cc98a3c8493ca275fa9e89f425a2eff24d2786e17522987f55d43

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page