Press any key to reset game during credits.

This commit is contained in:
David Thompson 2024-05-23 16:56:26 -04:00
parent 2151abef57
commit 1b51dde9bc

View file

@ -514,10 +514,8 @@
;; REMOVE BEFORE RELEASE!!!! ;; REMOVE BEFORE RELEASE!!!!
((string=? key key:confirm) ((string=? key key:confirm)
(next-level!)))) (next-level!))))
('win ;; Pressing any key resets the game.
(cond ('win (reset-game!)))))
((string=? key key:confirm)
(reset-game!)))))))
;; Canvas and event loop setup ;; Canvas and event loop setup
(define canvas (get-element-by-id "canvas")) (define canvas (get-element-by-id "canvas"))