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.3.tar.gz (241.0 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.3-py3-none-any.whl (250.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cogworks-0.2.3.tar.gz
  • Upload date:
  • Size: 241.0 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.3.tar.gz
Algorithm Hash digest
SHA256 084b6de6a597dfd8ca5cd41dab78b545164b403436b2281dae01a809002738c2
MD5 4345c935550ccd55f1cc6b7c17d79927
BLAKE2b-256 ab08654524decfb56b5c0ede3ad25bd582ad4e72a959406f8f7d3bf51969d2dc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cogworks-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 250.4 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9100990bbe6f0cb2e01b3688b16cc2f930c2ea05a2ae251e166d3891b5c37c68
MD5 9b0c6ab43322a5677985b41a8064ec81
BLAKE2b-256 70bcd72636c55d6012cd9f3749af9beaf4af83237812de6ee78ca88fb3dfbcff

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