Parents: | snake-game |
Class | Superclass | Slots |
snake-gadget | gadget | snake-game timer textures |
game-textures |
Word | Stack effect |
<snake-gadget> | ( -- snake-gadget ) |
do-updates | ( gadget -- ) |
draw-background | ( -- ) |
draw-food | ( loc -- ) |
draw-snake | ( loc from-dir snake -- ) |
draw-snake-body | ( loc from-dir to-dir -- ) |
draw-snake-head | ( loc facing-dir -- ) |
draw-snake-part | ( loc from-dir snake-part -- ) |
draw-snake-tail | ( loc facing-dir -- ) |
draw-sprite | ( grid-loc key -- ) |
draw-sprite* | ( key screen-loc -- ) |
game-loc>screen-loc | ( loc -- loc ) |
game-status | ( snake-game -- str ) |
key-dir | ( key -- dir ) |
lookup-texture | ( key -- texture ) |
new-game-key? | ( key -- ? ) |
next-snake-loc-from-dir | ( loc from-dir snake-part -- new-loc new-from-dir ) |
pause-key? | ( key -- ? ) |
quit-key? | ( key -- ? ) |
snake-game-cell-size | ( -- value ) |
start-new-game | ( snake-gadget -- ) |
toggle-game-pause | ( snake-gadget -- ) |
update-status | ( gadget -- ) |
Word | Stack effect |
snake-gadget? | ( object -- ? ) |