Skip to main content

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() 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

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.4.tar.gz (6.1 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.4-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cobrapad-0.2.4.tar.gz
  • Upload date:
  • Size: 6.1 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.4.tar.gz
Algorithm Hash digest
SHA256 44760816bdefcd501b0e1187647279881a8ad59029d7a3fe393b2fb8355d974b
MD5 31969593d521f10ac87b0eeaac361d74
BLAKE2b-256 5b304dc8fac72bfc3a2903971fa92dd00b5b016b7f6123bd5ca86460a4153329

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cobrapad-0.2.4-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

Hashes for cobrapad-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d72cb3a38c3b5254c27cd7a83825cedc294ba8388776be2e75bbf85c46089e90
MD5 5e69eb420d45388d81ccb7bea1774e00
BLAKE2b-256 b8d59e3a6ed96139a4e5aa189d6b6c60dbea1ca22cb260a3f7869e26c11e497e

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