Add logo and input mappings to intro level.

This commit is contained in:
David Thompson 2024-05-26 17:46:48 -04:00
parent 204cf8f62d
commit 2ce709b95b
2 changed files with 30 additions and 8 deletions

View file

@ -672,8 +672,30 @@
(set-transform! context 1.0 0.0 0.0 1.0 0.0 0.0) (set-transform! context 1.0 0.0 0.0 1.0 0.0 0.0)
(scale! context *canvas-scale* *canvas-scale*) (scale! context *canvas-scale* *canvas-scale*)
(draw-current-effect 'pre) (draw-current-effect 'pre)
(match *state* (match *state*
((or 'play 'interstitial) (draw-level)) ((or 'play 'interstitial)
(draw-level)
;; Display input mappings on the title screen/first level.
(when (= *level-idx* 0)
(let ((cx1 (/ game-width 4.0))
(cx2 (* game-width 0.75))
(baseline (/ game-height 2.0)))
(set-fill-color! context "#ffffff")
(set-text-align! context "center")
(set-font! context "normal 16px monogram")
(fill-text context "keyboard:"
cx1 (- baseline 32.0))
(fill-text context "arrows -> move"
cx1 (- baseline 16.0))
(fill-text context "Z -> undo"
cx1 baseline)
(fill-text context "touchscreen:"
cx2 (- baseline 32.0))
(fill-text context "dpad -> move"
cx2 (- baseline 16.0))
(fill-text context "A -> undo"
cx2 baseline))))
('win (draw-win))) ('win (draw-win)))
(draw-current-effect 'post) (draw-current-effect 'post)
(request-animation-frame draw-callback))) (request-animation-frame draw-callback)))

View file

@ -5,16 +5,16 @@
<data encoding="csv"> <data encoding="csv">
110,169,151,170,91,189,89,110,190,190,191,191,130,169,190,189,129,189,209,91, 110,169,151,170,91,189,89,110,190,190,191,191,130,169,190,189,129,189,209,91,
211,190,112,131,190,91,129,191,170,150,171,129,111,90,170,150,211,211,191,130, 211,190,112,131,190,91,129,191,170,150,171,129,111,90,170,150,211,211,191,130,
151,91,89,150,189,210,110,170,89,131,151,90,109,151,151,189,190,110,169,190, 151,91,89,150,189,229,230,231,232,233,234,235,236,237,238,189,190,110,169,190,
111,189,130,129,110,129,90,209,191,170,191,209,151,109,210,189,170,209,90,169, 111,189,130,129,110,249,250,251,252,253,254,255,256,257,258,189,170,209,90,169,
189,89,111,151,111,129,210,129,151,151,169,129,149,189,211,131,129,89,90,131, 189,89,111,151,111,269,270,271,272,273,274,275,276,277,278,131,129,89,90,131,
89,211,129,209,109,130,171,109,91,170,111,170,89,210,211,89,191,151,111,210, 89,211,129,209,210,130,171,109,91,170,111,170,169,210,211,129,191,151,111,210,
110,110,129,111,91,90,170,171,110,170,170,110,111,190,210,209,189,111,211,189, 110,110,129,111,149,90,170,171,110,170,170,110,111,190,210,209,189,111,211,189,
129,189,129,169,109,189,171,211,89,109,90,190,151,150,149,210,149,111,150,190, 129,189,129,169,109,189,171,211,89,109,90,190,151,150,149,210,149,111,150,190,
130,131,81,126,82,125,82,82,82,127,83,82,83,82,125,82,82,84,211,170, 130,131,81,126,82,125,82,82,82,127,83,82,83,82,125,82,82,84,211,170,
189,149,105,24,20,24,17,24,24,24,24,24,19,24,24,24,24,86,150,89, 189,149,105,24,20,24,17,24,24,24,24,24,19,24,24,24,24,86,150,89,
91,169,85,24,24,24,16,24,18,15,24,18,18,28,20,24,24,86,150,190, 91,169,85,24,24,24,16,24,18,15,24,18,24,28,24,24,24,86,150,190,
131,110,105,24,24,24,24,24,19,24,24,24,24,24,20,18,18,86,110,130, 131,110,105,24,24,24,24,24,19,24,24,24,24,24,20,24,18,86,110,130,
129,171,101,102,102,102,102,102,102,102,102,102,102,102,102,102,102,104,91,211, 129,171,101,102,102,102,102,102,102,102,102,102,102,102,102,102,102,104,91,211,
211,171,190,89,171,110,209,171,110,210,191,131,91,150,150,151,92,149,129,190, 211,171,190,89,171,110,209,171,110,210,191,131,91,150,150,151,92,149,129,190,
90,170,111,170,209,111,169,190,151,209,111,91,190,211,171,170,130,171,111,211 90,170,111,170,209,111,169,190,151,209,111,91,190,211,171,170,130,171,111,211