cobrapad 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,51 @@
1
+ Metadata-Version: 2.4
2
+ Name: cobrapad
3
+ Version: 0.1.0
4
+ Summary: A beginner-friendly 2D game engine built on top of pygame
5
+ Author: knyaz
6
+ License: MIT
7
+ Requires-Python: >=3.7
8
+ Description-Content-Type: text/markdown
9
+ Requires-Dist: pygame>=2.0.0
10
+
11
+
12
+ Cobrapad 🐍
13
+ A simple 2D game engine built on pygame.
14
+
15
+ Installation
16
+ pip install cobrapad
17
+
18
+ Usage
19
+ import cobrapad
20
+
21
+ screenX = 800
22
+ screenY = 600
23
+
24
+ cobrapad.open_screen()
25
+
26
+ harita = cobrapad.study("harita")
27
+ harita.create_the_box()
28
+
29
+ cobrapad.screen.paint("white")
30
+ kare1 = cobrapad.draw.Rect(200, 100, 50, 50, "blue")
31
+ cobrapad.draw.Circle(300, 300, 40, "red")
32
+ cobrapad.display.text("Hello!", 10, 10, 24, "black")
33
+
34
+ cobrapad.hide(kare1) # hide
35
+ cobrapad.show(kare1) # show
36
+
37
+ cobrapad.run()
38
+
39
+ Functions
40
+ cobrapad.open_screen() — opens the window
41
+ cobrapad.screen.paint("color") — sets background color
42
+ cobrapad.draw.Rect(x, y, w, h, "color") — draws a rectangle
43
+ cobrapad.draw.Circle(x, y, radius, "color") — draws a circle
44
+ cobrapad.display.text("text", x, y, size, "color") — displays text
45
+ cobrapad.hide(object) — hides object
46
+ cobrapad.show(object) — shows object
47
+ cobrapad.study("name") — creates a workspace
48
+ workspace.create_the_box() — initializes workspace
49
+
50
+ License
51
+ MIT — Made by Knyaz
@@ -0,0 +1,4 @@
1
+ cobrapad-0.1.0.dist-info/METADATA,sha256=iaYkMadXEgV2xd7P2JAK2RQQ4SDwmBrHBX3g0FfY1y8,1235
2
+ cobrapad-0.1.0.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
3
+ cobrapad-0.1.0.dist-info/top_level.txt,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
4
+ cobrapad-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (82.0.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1 @@
1
+