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()andmovesBy() - 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
Metadata
Release files for cobrapad 0.2.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cobrapad-0.2.4.tar.gz | 6.1 kB | Without provenance | Details for cobrapad-0.2.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cobrapad-0.2.4-py3-none-any.whl | Python 3 | none | any | Details for cobrapad-0.2.4-py3-none-any.whl |
Total release size: 12.1 kB
Release files / cobrapad-0.2.4.tar.gz
| Download URL | cobrapad-0.2.4.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
44760816bdefcd501b0e1187647279881a8ad59029d7a3fe393b2fb8355d974b
|
|
BLAKE2b-256 checksum How to use checksums |
5b304dc8fac72bfc3a2903971fa92dd00b5b016b7f6123bd5ca86460a4153329
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Release files / cobrapad-0.2.4-py3-none-any.whl
| Download URL | cobrapad-0.2.4-py3-none-any.whl |
|---|---|
| Size | 6.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d72cb3a38c3b5254c27cd7a83825cedc294ba8388776be2e75bbf85c46089e90
|
|
BLAKE2b-256 checksum How to use checksums |
b8d59e3a6ed96139a4e5aa189d6b6c60dbea1ca22cb260a3f7869e26c11e497e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Security for cobrapad 0.2.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.