Enable devs to try every levels

This commit is contained in:
theo@manjaro 2021-11-24 07:41:30 +01:00
parent 01cfa1ddfc
commit 50dde6c388
2 changed files with 2 additions and 1 deletions

View File

@ -95,6 +95,7 @@ class Game():
self.globals["hitpose"] = False
self.globals["finishedlevels"] = [] # Levels where the player went to the end
self.globals["completedlevels"] = [] # Levels where the player kicked all non-respawnable ennemies
self.globals["allunlocked"] = True
self.scaleCamera()
settings = {"sfx":1,"bgm":1}

View File

@ -54,7 +54,7 @@ class Levels(BaseObject):
if not self.moving and not self.launched:
if self.game.inputs["keys"]["right"]["timer"]>0:
if "Level "+str(self.cursor+1) in self.game.globals["finishedlevels"]:
if "Level "+str(self.cursor+1) in self.game.globals["finishedlevels"] or self.game.globals["allunlocked"]:
self.cursor+=1
self.flip = False
if self.game.inputs["keys"]["left"]["timer"]>0: