~rabbits/donsol

472daaf00217c1bee8e5c6224860e91c77fd83d7 — neauoire 1 year, 4 months ago 0df9753
Fixed selection issue on DS
1 files changed, 14 insertions(+), 11 deletions(-)

M src/main.tal
M src/main.tal => src/main.tal +14 -11
@@ 1,9 1,9 @@
 ( 
	Donsol
	TODO
		- Win state
		- Death state
		- Keep score
		- Keep best score
		- Print best score on splash
		- Lock touch/input on timer
 )

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


@@ 128,24 128,27 @@ BRK
@on-mouse-menu ( -> )

	;draw-cursor JSR2
	.Mouse/state DEI #00 = ,&no-click JCN
		;go-game JSR2 BRK
		&no-click

	.Mouse/y DEI2 .frame/y LDZ2 -- 8// NIP #11 ! ,&skip JCN
		.Mouse/x DEI2 .frame/x LDZ2 -- 8// NIP
		DUP #09 > ,&no-easy JCN
			#00 ;set-mode JSR2 POP BRK
			#00 ;set-mode JSR2 
			,&resume JMP
			&no-easy
		DUP #11 > ,&no-normal JCN
			#01 ;set-mode JSR2 POP BRK
			#01 ;set-mode JSR2 
			,&resume JMP
			&no-normal
		DUP #18 > ,&no-hard JCN
			#02 ;set-mode JSR2 POP BRK
			#02 ;set-mode JSR2 
			,&resume JMP
			&no-hard
		&resume
		POP
		#00 ;set-mode JSR2
		&skip
	&skip
	.Mouse/state DEI #00 = ,&no-click JCN
		;go-game JSR2 BRK
		&no-click

BRK