feat: render ascii art
This commit is contained in:
parent
bf128418cc
commit
688f694091
1 changed files with 20 additions and 0 deletions
20
game.scm
20
game.scm
|
@ -42,6 +42,10 @@
|
||||||
(set! *template* template-task)
|
(set! *template* template-task)
|
||||||
(render))))
|
(render))))
|
||||||
"Task")
|
"Task")
|
||||||
|
(button (@ (click ,(lambda (event)
|
||||||
|
(set! *template* template-ascii-art)
|
||||||
|
(render))))
|
||||||
|
"Ascii art")
|
||||||
(div (@ (id "application")) ,(template))))
|
(div (@ (id "application")) ,(template))))
|
||||||
|
|
||||||
(define (render)
|
(define (render)
|
||||||
|
@ -146,6 +150,22 @@
|
||||||
(render))))))
|
(render))))))
|
||||||
"Add task")))
|
"Add task")))
|
||||||
|
|
||||||
|
|
||||||
|
;; render ascii art
|
||||||
|
(define (template-ascii-art)
|
||||||
|
(define ink-script '(
|
||||||
|
"(\\ "
|
||||||
|
"\\'\\ "
|
||||||
|
" \\'\\ __________ "
|
||||||
|
" / '| ()_________) "
|
||||||
|
" \\ '/ \\ ~~~~~~~~ \\ "
|
||||||
|
" \\ \\ ~~~~~~ \\ "
|
||||||
|
" ==). \\__________\\ "
|
||||||
|
" (__) ()__________) "
|
||||||
|
))
|
||||||
|
`(pre ,(string-join ink-script "\n")))
|
||||||
|
|
||||||
|
|
||||||
;; Main
|
;; Main
|
||||||
(set! *template* template-task)
|
(set! *template* template-task)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue