Skip to main content

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

Project description

Cobrapad 🐍 A simple 2D game engine built on pygame.

Installation pip install cobrapad

Usage import cobrapad

screenX = 800 screenY = 600

cobrapad.open_screen()

harita = cobrapad.study("harita") harita.create_the_box()

cobrapad.screen.paint("white") kare1 = cobrapad.draw.Rect(200, 100, 50, 50, "blue") cobrapad.draw.Circle(300, 300, 40, "red") cobrapad.display.text("Hello!", 10, 10, 24, "black")

cobrapad.hide(kare1) # hide cobrapad.show(kare1) # show

cobrapad.run()

Functions cobrapad.open_screen() — opens the window cobrapad.screen.paint("color") — sets background color cobrapad.draw.Rect(x, y, w, h, "color") — draws a rectangle cobrapad.draw.Circle(x, y, radius, "color") — draws a circle cobrapad.display.text("text", x, y, size, "color") — displays text cobrapad.hide(object) — hides object cobrapad.show(object) — shows object cobrapad.study("name") — creates a workspace workspace.create_the_box() — initializes workspace

License MIT — Made by 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.1.1.tar.gz (3.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.1.1-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cobrapad-0.1.1.tar.gz
  • Upload date:
  • Size: 3.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.1.1.tar.gz
Algorithm Hash digest
SHA256 45aa44d8062ac2594d45af3740353ea98480c664c5d59afda160231e65121303
MD5 e93539e176281ca51f2b995aa3e18321
BLAKE2b-256 7d23a104ecc6b470e81ca70d7af52b67594d44ef20b07a89c12464d37b30946b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cobrapad-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.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.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ae721e589f7441ffc59ef2f1bb1c0b3a8e06f71aff1d990141ff4cb5889075f3
MD5 0dce0f12e325e952922f7dc958c1b6e4
BLAKE2b-256 c930925908ccfe5fe22b5926c0c1161125aa17ecc9dfce75bfc59430428bda5b

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