Thower 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.
thower-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,6 @@
1
+ Metadata-Version: 2.4
2
+ Name: Thower
3
+ Version: 0.1.0
4
+ Summary: Nothing Here
5
+ Requires-Dist: pygame
6
+ Requires-Dist: pathlib
@@ -0,0 +1,15 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61.0.0"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "Thower"
7
+ version = "0.1.0"
8
+ description = "Nothing Here"
9
+ dependencies = [
10
+ "pygame",
11
+ "pathlib"
12
+ ]
13
+
14
+ [project.scripts]
15
+ Thower = "Thower.module:main"
thower-0.1.0/setup.cfg ADDED
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,41 @@
1
+ import pygame
2
+ import sys
3
+ import pathlib
4
+
5
+ def window():
6
+ pygame.init()
7
+ package = pathlib.Path(__file__).resolve().parent
8
+ logo = package / "isle.png"
9
+ logo_sur = pygame.image.load(logo)
10
+ pygame.display.set_icon(logo_sur)
11
+ screen = pygame.display.set_mode((1115, 500))
12
+ pygame.display.set_caption("Game")
13
+ Clock = pygame.time.Clock()
14
+ Player = pygame.Surface((45, 45))
15
+ Player.fill("Lime")
16
+ x = 575.5
17
+ y = 250
18
+ speed = 7.5
19
+ run = True
20
+
21
+ while run:
22
+ screen.fill("Black")
23
+ if pygame.event.peek(pygame.QUIT):
24
+ run = False
25
+ key = pygame.key.get_pressed()
26
+ if key[pygame.K_w]:
27
+ y-=speed
28
+ if key[pygame.K_s]:
29
+ y+=speed
30
+ if key[pygame.K_a]:
31
+ x-=speed
32
+ if key[pygame.K_d]:
33
+ x+=speed
34
+ screen.blit(Player, (x, y))
35
+ pygame.display.flip()
36
+ Clock.tick(60)
37
+ pygame.quit()
38
+
39
+ def main():
40
+ window()
41
+
@@ -0,0 +1,6 @@
1
+ Metadata-Version: 2.4
2
+ Name: Thower
3
+ Version: 0.1.0
4
+ Summary: Nothing Here
5
+ Requires-Dist: pygame
6
+ Requires-Dist: pathlib
@@ -0,0 +1,8 @@
1
+ pyproject.toml
2
+ src/Thower/module.py
3
+ src/Thower.egg-info/PKG-INFO
4
+ src/Thower.egg-info/SOURCES.txt
5
+ src/Thower.egg-info/dependency_links.txt
6
+ src/Thower.egg-info/entry_points.txt
7
+ src/Thower.egg-info/requires.txt
8
+ src/Thower.egg-info/top_level.txt
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ Thower = Thower.module:main
@@ -0,0 +1,2 @@
1
+ pygame
2
+ pathlib
@@ -0,0 +1 @@
1
+ Thower