Added medals on ending screen
This commit is contained in:
parent
d9158b1dbc
commit
99a24b34ec
@ -91,8 +91,6 @@ class Game():
|
||||
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["speedrunlevels"] = [] # Levels where the player finished fast enough
|
||||
self.globals["speedrunlevels"] = list(range(5))
|
||||
self.globals["completedlevels"] = list(range(5))
|
||||
self.globals["overworld"] = True
|
||||
self.globals["nblevels"] = 0
|
||||
self.globals["levelname"] = None
|
||||
|
@ -9,6 +9,8 @@ class EndCinematic(BaseObject):
|
||||
|
||||
clean = len(game.globals["completedlevels"])==self.game.globals["nblevels"]
|
||||
speedrun = len(game.globals["speedrunlevels"])==self.game.globals["nblevels"]
|
||||
self.medalwave = self.game.sprite_lib["medals/waveoff.png"]
|
||||
self.medalclock = self.game.sprite_lib["medals/clockoff.png"]
|
||||
|
||||
self.bgm = self.game.sound_lib["bgm/cinematic.ogg"]
|
||||
self.bgm.play()
|
||||
@ -19,9 +21,11 @@ class EndCinematic(BaseObject):
|
||||
But there's some trash left
|
||||
Try cleaning everything up !"""
|
||||
if clean:
|
||||
self.medalwave = self.game.sprite_lib["medals/wave.png"]
|
||||
text = """Thanks for cleaning everything !
|
||||
Try to beat every level as fast as you can !"""
|
||||
if speedrun:
|
||||
self.medalclock = self.game.sprite_lib["medals/clock.png"]
|
||||
text = """You were quick !
|
||||
But there's some trash left
|
||||
Try cleaning everything up !"""
|
||||
@ -84,4 +88,6 @@ Go support #TeamSeas"""
|
||||
cx = self.game.globals["cameraw"]/2
|
||||
cy = self.game.globals["camerah"]/2
|
||||
self.game.lib.drawcenter(self.game,self.title,cx,cy)
|
||||
self.game.lib.drawcenter(self.game,self.medalwave,cx-20,cy+40)
|
||||
self.game.lib.drawcenter(self.game,self.medalclock,cx+20,cy+40)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user