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 movesTo()
  • 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.2.tar.gz (5.9 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.2-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cobrapad-0.2.2.tar.gz
  • Upload date:
  • Size: 5.9 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.2.tar.gz
Algorithm Hash digest
SHA256 9a4e12e09cd3643da0df5fa6fdeac86fe32fe97981b6f6992bf6837181342076
MD5 739f72e352a289ad21315a5fbe3baf6a
BLAKE2b-256 3a1a90a55626e8e702c3e485b562143d2b6b104b6872be245edded9ce19b6ace

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cobrapad-0.2.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d86ed66a41e9e4f500f273cbcc2099ada2fd0271c6b5b8d5fb660c5e21ebd8ff
MD5 52b78bc03c8b695431a643c382c6d80b
BLAKE2b-256 ad7b406902b284382b3efddb6491ce62e7c3a635f281fcc764db2f9653cf03db

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