code-check-jay #1

Open
jimdahl wants to merge 19 commits from code-check-jay into main
Showing only changes of commit fd9018d0f1 - Show all commits

View file

@ -2,6 +2,7 @@ import pygame
SCREEN_WIDTH = 1280
SCREEN_HEIGHT = 720
PLAYER_SIZE = 20
class Game:
@ -18,9 +19,7 @@ class Game:
self.dt: int = 0
# Spieler
self.player_pos = pygame.Vector2(self.display.get_width() / 2, self.display.get_height() / 2)
self.player_width = 20
self.player_height = 20
self.player = Player(self, self.player_pos, width=self.player_width, height=self.player_height)
self.player = Player(self, self.player_pos, width=PLAYER_SIZE, height=PLAYER_SIZE)
# Items
self.item_rect = pygame.Rect(70, 150, 10, 10)
self.flashlight = 0