- Lade map.json innerhalb von try-except
- test-Funktion entfernt
This commit is contained in:
parent
35e22e1fbf
commit
9e0068e926
1 changed files with 4 additions and 6 deletions
8
game.py
8
game.py
|
|
@ -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)
|
||||||
|
try:
|
||||||
self.tilemap.load("map.json")
|
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:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue