code-check-jay #1
1 changed files with 2 additions and 3 deletions
5
game.py
5
game.py
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue