A beginner-friendly 2D game engine built on top of pygame
Project description
Cobrapad
Cobrapad is a fast and easy-to-use 2D game library built on top of Pygame. It is designed for beginners and intermediate developers who want to create 2D games without dealing with complex code.
Features
- Draw shapes — Rectangle, Circle, Oval, Polygon
- Add images and backgrounds easily
- Display text on screen
- Create clickable buttons
- Animate objects with
moves()andmovesTo() - Show and hide objects
- Detect mouse clicks anywhere on screen
- Delay actions with a timer using
stop() - Clear the screen instantly with
clearScreen() - Detect collisions with
collide()
Installation
pip install cobrapad
Quick Start
import cobrapad
screenX = 800
screenY = 600
#This determines the size of the screen
cobrapad.open_screen()
calisma = cobrapad.study()
calisma.setup()
#We write the code here
cobrapad.run()
#This starts the game cycle
Note:
Cobrapad is currently in beta. Features like keyboard input and audio support will be added in future versions. Warning for Mobile Users: If you are installing Cobrapad on a mobile device, please ensure that you have installed pygame via your IDE's "Pip" menu before using the library.
Community
Join our Discord server to learn Cobrapad, ask questions, and share your projects: Click here to join the Cobrapad Discord Server
License
MIT License Copyright (c) 2026 Knyaz
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
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 cobrapad-0.2.3.tar.gz.
File metadata
- Download URL: cobrapad-0.2.3.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
73baed9cf86bcabfc03a34991fecdacea3889418609f871cba2a7cbd724dcfcf
|
|
| MD5 |
ed182a486f28c549411e73a6d01a92ce
|
|
| BLAKE2b-256 |
9fa95e9a6116fb8d210b11f346be9059da319f1b18855b0b42137d6837c19a39
|
File details
Details for the file cobrapad-0.2.3-py3-none-any.whl.
File metadata
- Download URL: cobrapad-0.2.3-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0de234d353acab883c9bd5f9111eab3653c5192d2f77324622d7b67aa76d931c
|
|
| MD5 |
e286d9124c27e2cc838f529461da7d98
|
|
| BLAKE2b-256 |
ccdd0d16975426e8693604db44d8675ebe32f8bb79524720b0cd425b085b5b64
|