Compare commits
2 Commits
d9158b1dbc
...
484a621b72
Author | SHA1 | Date |
---|---|---|
theo@manjaro | 484a621b72 | |
theo@manjaro | 99a24b34ec |
|
@ -91,8 +91,6 @@ class Game():
|
||||||
self.globals["finishedlevels"] = [] # Levels where the player went to the end
|
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["completedlevels"] = [] # Levels where the player kicked all non-respawnable ennemies
|
||||||
self.globals["speedrunlevels"] = [] # Levels where the player finished fast enough
|
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["overworld"] = True
|
||||||
self.globals["nblevels"] = 0
|
self.globals["nblevels"] = 0
|
||||||
self.globals["levelname"] = None
|
self.globals["levelname"] = None
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -9,6 +9,8 @@ class EndCinematic(BaseObject):
|
||||||
|
|
||||||
clean = len(game.globals["completedlevels"])==self.game.globals["nblevels"]
|
clean = len(game.globals["completedlevels"])==self.game.globals["nblevels"]
|
||||||
speedrun = len(game.globals["speedrunlevels"])==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 = self.game.sound_lib["bgm/cinematic.ogg"]
|
||||||
self.bgm.play()
|
self.bgm.play()
|
||||||
|
@ -19,9 +21,11 @@ class EndCinematic(BaseObject):
|
||||||
But there's some trash left
|
But there's some trash left
|
||||||
Try cleaning everything up !"""
|
Try cleaning everything up !"""
|
||||||
if clean:
|
if clean:
|
||||||
|
self.medalwave = self.game.sprite_lib["medals/wave.png"]
|
||||||
text = """Thanks for cleaning everything !
|
text = """Thanks for cleaning everything !
|
||||||
Try to beat every level as fast as you can !"""
|
Try to beat every level as fast as you can !"""
|
||||||
if speedrun:
|
if speedrun:
|
||||||
|
self.medalclock = self.game.sprite_lib["medals/clock.png"]
|
||||||
text = """You were quick !
|
text = """You were quick !
|
||||||
But there's some trash left
|
But there's some trash left
|
||||||
Try cleaning everything up !"""
|
Try cleaning everything up !"""
|
||||||
|
@ -84,4 +88,6 @@ Go support #TeamSeas"""
|
||||||
cx = self.game.globals["cameraw"]/2
|
cx = self.game.globals["cameraw"]/2
|
||||||
cy = self.game.globals["camerah"]/2
|
cy = self.game.globals["camerah"]/2
|
||||||
self.game.lib.drawcenter(self.game,self.title,cx,cy)
|
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