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.12.tar.gz (243.6 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for cogworks-0.2.12.tar.gz
Algorithm Hash digest
SHA256 c73979d5e0ffffab1667cd1ccdf8fbc40d6640b44a26b2e89c705d873fd7e93b
MD5 3ec8c741addf6fd5c1198f81529b34f7
BLAKE2b-256 933898999b15abfe75f267bf9e4fb74ef4ac7cf74a9e1c63adeb33dcbf937a05

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