@@ -88,7 +88,7 @@ class Player extends Entity
8888 @weapon \ try_attack! unless @stunned
8989
9090 take_hit : ( enemy) =>
91- return if @hit
91+ return if @hit or @locked
9292 sfx\ play " player_is_hit"
9393 @world . game. viewport\ shake!
9494
@@ -205,10 +205,10 @@ class Game
205205
206206class Intro
207207 text : {
208- " Slimes!\n\n They 're everywhere!" ,
209- " They 've invaded the castle,\n and are living in\n the catacombs." ,
210- " They 're attacking our\n soldiers.\n\n They 've stolen our princess." ,
211- " You must get them! " ,
208+ " Slimes!\n\n they 're everywhere!"
209+ " they 've invaded the castle,\n and are living in\n the catacombs."
210+ " they 're attacking our\n soldiers.\n\n they 've stolen our princess."
211+ " you must get them! "
212212 }
213213
214214 onload : ( @dispatch ) => sfx. music\ stop!
@@ -219,6 +219,7 @@ class Intro
219219 @effect = ViewportFade @viewport , " in"
220220
221221 begin : =>
222+ @dispatch \ pop!
222223 @dispatch \ push Game !
223224
224225 update : ( dt) =>
@@ -250,6 +251,19 @@ class Intro
250251 @effect \ draw! if @effect
251252 @viewport \ pop!
252253
254+
255+ export class Outro extends Intro
256+ text : {
257+ " Upon slaying the Huge Slime,\n you discover the castle\n toilets."
258+ " Excrement falls down and\n festers in a pile.\n\n What is this!?"
259+ " The slimes have eveolved\n from our own waste.\n\n And now they torment us."
260+ " What will become of this\n kingdom?" ,
261+ " The slimes are at last dead.\n\n\n But at what cost?"
262+ }
263+
264+ begin : =>
265+ @dispatch \ pop 2
266+
253267class Title
254268 onload : ( @dispatch ) => sfx\ play_music " slime_title"
255269 new : =>
0 commit comments