Skip to main content

A beginner-friendly 2D game engine built on top of pygame

Project description

Cobrapad

Cobrapad Logo

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 movesTo()
  • Show and hide objects
  • Detect mouse clicks anywhere on screen
  • Delay actions with a timer using stop()
  • Clear the screen instantly with clearScreen()

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 under development. Features like keyboard input, audio support, and collision detection 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

cobrapad-0.2.0.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cobrapad-0.2.0-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file cobrapad-0.2.0.tar.gz.

File metadata

  • Download URL: cobrapad-0.2.0.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for cobrapad-0.2.0.tar.gz
Algorithm Hash digest
SHA256 e446e3036733ab839f5c11ff1eb6b65bc573f4819cbbb73950394b9cdcc9a103
MD5 d6238f68aa087a5fe633e25bcb58cda7
BLAKE2b-256 4c9b6768e429751c42027f49c5d09b5635ca247d3ae970a365d363eb1b612c4a

See more details on using hashes here.

File details

Details for the file cobrapad-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: cobrapad-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for cobrapad-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 adb3fb5c5482a820b112ee5ae60f222012eb536ac7b9e15c567c5c5814f66e81
MD5 ebd20f5944522dbba3fe0bb004e025ee
BLAKE2b-256 3d6f81771598694c41ae95c25946a7c9b340b84bc0008c3df45fd83e94b6bd19

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