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.1.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.1-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cobrapad-0.2.1.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.1.tar.gz
Algorithm Hash digest
SHA256 fd3c6c75a50617ea8169149411c5274cefce0e6dea241a4b6647f4b78bb61386
MD5 5eeb9747744691285ed22fa636ecbfd0
BLAKE2b-256 e87a755de3167b79665e6132ebbe1e79018ee058ef825efff1c80b2927fe152b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cobrapad-0.2.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c3cd496eb5cf70bcf5fa93944939e81fc1fc2924eca353ff9905d7aaa70f6dbb
MD5 07abd4777e270a454664b64792dcc298
BLAKE2b-256 825f750511c6b6a1bd035a2cb6d1e4b5c15d25b2d8067fb4925a9a546da82ba2

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