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.0.tar.gz (1.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.0-py3-none-any.whl (1.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cobrapad-0.1.0.tar.gz
  • Upload date:
  • Size: 1.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.0.tar.gz
Algorithm Hash digest
SHA256 1b646f14df4d1e3e21691c3d21ca34d627c1c39561f8d863f86b7372feaa8296
MD5 375440491db80454c76babf8675498c9
BLAKE2b-256 916ebb8f935e8d20a75bc3979cb6f15f00d8451510aac9d1e38b14d00ae29a2e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cobrapad-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 1.5 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 78d775bf6aaa378e041afba6370858f75dfc4c5684458c7f52f2dabf3515a022
MD5 393da7e96cc364041fbfedc52fbb25a7
BLAKE2b-256 48a4e7bd560b34a5a595e94ced7fc1ca1580189b42b96e7bdbb416cf3a8c1595

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