cobrapad 0.1.0__tar.gz

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,41 @@
1
+
2
+ Cobrapad 🐍
3
+ A simple 2D game engine built on pygame.
4
+
5
+ Installation
6
+ pip install cobrapad
7
+
8
+ Usage
9
+ import cobrapad
10
+
11
+ screenX = 800
12
+ screenY = 600
13
+
14
+ cobrapad.open_screen()
15
+
16
+ harita = cobrapad.study("harita")
17
+ harita.create_the_box()
18
+
19
+ cobrapad.screen.paint("white")
20
+ kare1 = cobrapad.draw.Rect(200, 100, 50, 50, "blue")
21
+ cobrapad.draw.Circle(300, 300, 40, "red")
22
+ cobrapad.display.text("Hello!", 10, 10, 24, "black")
23
+
24
+ cobrapad.hide(kare1) # hide
25
+ cobrapad.show(kare1) # show
26
+
27
+ cobrapad.run()
28
+
29
+ Functions
30
+ cobrapad.open_screen() — opens the window
31
+ cobrapad.screen.paint("color") — sets background color
32
+ cobrapad.draw.Rect(x, y, w, h, "color") — draws a rectangle
33
+ cobrapad.draw.Circle(x, y, radius, "color") — draws a circle
34
+ cobrapad.display.text("text", x, y, size, "color") — displays text
35
+ cobrapad.hide(object) — hides object
36
+ cobrapad.show(object) — shows object
37
+ cobrapad.study("name") — creates a workspace
38
+ workspace.create_the_box() — initializes workspace
39
+
40
+ License
41
+ MIT — Made by Knyaz
@@ -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,7 @@
1
+ README.md
2
+ pyproject.toml
3
+ cobrapad.egg-info/PKG-INFO
4
+ cobrapad.egg-info/SOURCES.txt
5
+ cobrapad.egg-info/dependency_links.txt
6
+ cobrapad.egg-info/requires.txt
7
+ cobrapad.egg-info/top_level.txt
@@ -0,0 +1 @@
1
+ pygame>=2.0.0
@@ -0,0 +1 @@
1
+ sample_data
@@ -0,0 +1,18 @@
1
+
2
+ [build-system]
3
+ requires = ["setuptools>=61.0"]
4
+ build-backend = "setuptools.build_meta"
5
+
6
+ [project]
7
+ name = "cobrapad"
8
+ version = "0.1.0"
9
+ authors = [
10
+ {name = "knyaz"}
11
+ ]
12
+ description = "A beginner-friendly 2D game engine built on top of pygame"
13
+ readme = "README.md"
14
+ requires-python = ">=3.7"
15
+ license = {text = "MIT"}
16
+ dependencies = [
17
+ "pygame>=2.0.0"
18
+ ]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+