Skip to content

Commit

Permalink
Add flicker effect
Browse files Browse the repository at this point in the history
  • Loading branch information
stefandevai committed Apr 20, 2020
1 parent e99c4e0 commit 8c8a126
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/main.fnl
Original file line number Diff line number Diff line change
Expand Up @@ -1843,10 +1843,11 @@

;; Controls which message to display in the game over screen
(global highscore-flag false)
(global *game-state* "menu"))
(global *game-state* "win"))

(fn update-win-screen []
(cls 5)
(music 0)
(local title-string "YOU WON!!!")
(local width (print title-string 0 -16 12 true 2))
(print title-string (// (- 240 width) 2) (* 2 8) 12 true 2)
Expand Down Expand Up @@ -1942,6 +1943,7 @@
(= *game-state* "win")
(if (< *time-elapsed* 10)
(do (when (> *cam*.speedx 10) (set *cam*.speedx 10))
(music)
(when (= (% *tick* 45) 0)
(sfx 9 24 -1 3 10 0)
(local emitter (deepcopy *pexplosion-emitter*))
Expand Down

0 comments on commit 8c8a126

Please sign in to comment.