~rabbits/donsol

57d5cfaeb60ae165db1d55c7da22810ccbcc5477 — neauoire 1 year, 4 months ago 472daaf
Lock controls on timer
1 files changed, 11 insertions(+), 2 deletions(-)

M src/main.tal
M src/main.tal => src/main.tal +11 -2
@@ 3,7 3,6 @@
	TODO
		- Keep best score
		- Print best score on splash
		- Lock touch/input on timer
 )

%+  { ADD }  %-  { SUB }  %*  { MUL }  %/  { NEQ }


@@ 256,7 255,12 @@ RTN
BRK

@on-button-game ( -> )
	

	( timer locked )
	.table/timer LDZ #00 = ,&enabled JCN
		BRK
		&enabled

	.Controller/button DEI 
	[ #01 ] !~ ,&no-a JCN
		.table/selection LDZ #01 ;select JSR2 POP BRK


@@ 280,6 284,11 @@ BRK

@on-mouse-game ( -> )

	( timer locked )
	.table/timer LDZ #00 = ,&enabled JCN
		BRK
		&enabled

	( run button )
	.Mouse/state DEI #10 ! ,&no-mouse2 JCN
		;run JSR2