snake-game.ui vocabulary
Factor handbook > Vocabulary index


Summary
snake-game.ui vocabulary

Words

Tuple classes
ClassSuperclassSlots
snake-gadget gadgetsnake-game timer textures


Symbol words
game-textures


Ordinary words
WordStack 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 -- )


Class predicate words
WordStack effect
snake-gadget?( object -- ? )


Files