diff --git a/gamedata/game.py b/gamedata/game.py index ef28222..881dadb 100644 --- a/gamedata/game.py +++ b/gamedata/game.py @@ -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} diff --git a/gamedata/objects/levels.py b/gamedata/objects/levels.py index e8866db..0d30264 100644 --- a/gamedata/objects/levels.py +++ b/gamedata/objects/levels.py @@ -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: