Rewrite existing credits

Each credit has its own draw function

Credits outside of the visible game area are not drawn
This commit is contained in:
Amy Grinn 2025-01-08 12:26:08 -05:00
parent 7d4d6115a4
commit afef0fd480
No known key found for this signature in database
GPG key ID: 6B558BED1DCF3192
5 changed files with 174 additions and 76 deletions

View file

@ -39,7 +39,8 @@
translate!
rotate!
set-transform!
set-image-smoothing-enabled!))
set-image-smoothing-enabled!
measure-text))
;; HTMLCanvasElement
(define-foreign get-context
@ -98,3 +99,6 @@
(define-foreign set-image-smoothing-enabled!
"canvas" "setImageSmoothingEnabled"
(ref extern) i32 -> none)
(define-foreign measure-text
"canvas" "measureText"
(ref extern) (ref string) -> (ref extern))