~rabbits/zombie

a58710b8c6acaed23b4e99adc3fcd31087e949ff — Devine Lu Linvega 1 year, 9 months ago 7d88e7e
Added flip switch
4 files changed, 26 insertions(+), 19 deletions(-)

M etc/ss10x10.chr
M src/assets.tal
M src/main.tal
M src/song.tal
M etc/ss10x10.chr => etc/ss10x10.chr +0 -0
M src/assets.tal => src/assets.tal +9 -11
@@ 23,20 23,18 @@
	4040 2020 100c 0300
	0202 0404 0830 c000
	0000 183c 3c18 0000
@flip-icns
	000f 1010 1010 1010
	00f0 0808 0808 0808
	1f1f 1f1f 1f1f 0f00
	f8f8 f8f8 f8f8 f000
	000f 1f1f 1f1f 1f1f
	00f0 f8f8 f8f8 f8f8
	1010 1010 1010 0f00
	0808 0808 0808 f000
@play-icns
    007e 7e7e 7e7e 7e00
    0046 6676 7666 4600
@flip-icns
	( off )
	3f40 8080 8080 809f
	f804 0202 0202 02f2
	bfbf bfbf 9f40 3f00
	fafa fafa f204 f800
	( on )
	3f40 9fbf bfbf bf9f
	f804 f2fa fafa faf2
	8080 8080 8040 3f00
	0202 0202 0204 f800
@tbars-icns
    1010 1010 1010 1111
    &q 0000 0000 1010 1111

M src/main.tal => src/main.tal +13 -6
@@ 270,9 270,13 @@ BRK
		#00 OVR
		STH2kr LDA2 #fff0 AND2 ADD2 STH2kr STA2
		&no-r
	OVR #04 NEQ ,&no-l JCN
		#00 .sel/chan LDZ #30 SFT ;song/piano-off ADD2
		LDAk #00 EQU ROT ROT STA
		#00 .Mouse/state DEO
		&no-l
	POP2
	POP2r

	;draw-controls JSR2

BRK


@@ 772,13 776,12 @@ JMP2r
	#00f0 .Screen/y DEO2
	;env-txt ;draw-str JSR2 POP2

	.sel/chan LDZ ;print/byte JSR2 #0a18 DEO

	#00 .sel/chan LDZ #30 SFT ;song/piano-env ADD2 LDA2 SWP STH2
	#0030 #00f8 STHkr #04 SFT ;draw-knob JSR2
	#0040 #00f8 STHr #0f AND ;draw-knob JSR2
	#0050 #00f8 STHkr #04 SFT ;draw-knob JSR2
	#0060 #00f8 STHr #0f AND ;draw-knob JSR2
	#0070 #00f8 #00 .sel/chan LDZ #30 SFT ;song/piano-off ADD2 LDA ;draw-flip JSR2

	( bal )
	#0080 .Screen/x DEO2 


@@ 925,11 928,15 @@ JMP2r

JMP2r

@draw-flip ( bool -- )
@draw-flip ( x* y* bool -- )

	STH
	.Screen/y DEO2
	.Screen/x DEO2

	#16 .Screen/auto DEO
	#00 SWP #50 SFT2 ;flip-icns ADD2 .Screen/addr DEO2
	#05 .Screen/sprite DEOk DEO
	#00 STHr #50 SFT2 ;flip-icns ADD2 .Screen/addr DEO2
	#01 .Screen/sprite DEOk DEO

JMP2r


M src/song.tal => src/song.tal +4 -2
@@ 18,7 18,8 @@
	&piano-pcm 0000
	&piano-len 0000
	&piano-env 0008
	&piano-vol 0000
	&piano-off 00
	&piano-vol 00

	&ch1 0000 0000 0008 0000
	&ch2 0000 0000 0008 0000


@@ 29,7 30,8 @@
	&drum-pcm 0000
	&drum-len 0000
	&drum-env 0f0f
	&drum-vol 0000
	&drum-off 00
	&drum-vol 00

	&bdr 0000 0000 0f04 0000
	&snr 0000 0000 0f04 0000