Metadata-Version: 2.4
Name: cobrapad
Version: 0.1.0
Summary: A beginner-friendly 2D game engine built on top of pygame
Author: knyaz
License: MIT
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Requires-Dist: pygame>=2.0.0


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
