T !00000573 : t ['] tickbeat drop \ Include this man titlescreen \ put up a title screen init_rand \ initialize the random number generator cls begin 5 10 gotoxy ." Play level (0-9) or ESC? " 0 begin drop key dup 27 = if drop cls [ TURNKEYING -1 = ] IF{ vbname 1 open if ." Writing out high scores " cr vboard slotwidth 10 * stack abc|abca write drop drop close if else drop endif else ." error " . ." writing out high scores." endif exit }ELSE{ [ TURNKEYING 1 = ] IF{ snapshot bye }ELSE{ exit }ENDIF }ENDIF endif ` 0 - dup 10 u< until 10 swap - speed ! \ Figure speed 0 score ! 0 rows ! \ New game title \ Show off 0 score+ \ Show score stats 7 4 * 0 fill \ erase the statistics area 0 svoffset gotoxy 7 0 do i . ." : 0" cr loop \ put up the block numbers 0 svoffset 7 + gotoxy ." # dropped:" play \ Play game cls 0 score+ \ Show score sethighscore \ set new high score, if any 5 10 gotoxy ." Press ESC..." begin key 27 = until 0 until ; -*- v TURNKEYING !00000062 \ -1 turnkey \ 0 memory \ 1 snapshot 0 constant turnkeying -*- > .R !0000004B : .r ( n w -- ) swap <# #s #> stack abc|bcac - 0 max spaces type ; -*- >