refactor/typisierung-und-collisions #1

Merged
bhinz merged 5 commits from refactor/typisierung-und-collisions into main 2026-05-11 15:17:37 +00:00
Showing only changes of commit 9e0068e926 - Show all commits

10
game.py
View file

@ -44,15 +44,13 @@ class Game:
self.player = Player(self, (50, 50), (8, 15)) self.player = Player(self, (50, 50), (8, 15))
self.tilemap = Tilemap(self, 16) self.tilemap = Tilemap(self, 16)
self.tilemap.load("map.json") try:
self.tilemap.load("map.json")
except FileNotFoundError:
pass
self.clouds = Clouds(self.assets["clouds"], count=16) self.clouds = Clouds(self.assets["clouds"], count=16)
self.isJumping = False self.isJumping = False
self.scroll = [0, 0] self.scroll = [0, 0]
self.test: dict = {"dsa"}
def testolino(self):
print(self.test)
print(type(self.test))
def run(self): def run(self):
while self.running: while self.running: