Enable devs to try every levels
This commit is contained in:
parent
01cfa1ddfc
commit
50dde6c388
@ -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}
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user