Skip to main content

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() and movesBy()
  • 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

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)

Source distribution for cobrapad 0.2.4
File Size Uploaded
cobrapad-0.2.4.tar.gz 6.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cobrapad 0.2.4
File Interpreter ABI Platform
cobrapad-0.2.4-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.2.4 This release

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page