mirror of https://git.sr.ht/~rabbits/oquonie
Added shadow
This commit is contained in:
parent
af81702f82
commit
5a20173611
2
build.sh
2
build.sh
|
@ -47,6 +47,8 @@ echo "Create characters"
|
|||
cat etc/c.txt | uxncli bin/packer.rom bin/c.rom
|
||||
echo "Create events"
|
||||
cat etc/e.txt | uxncli bin/packer.rom bin/e.rom
|
||||
echo "Create blockers"
|
||||
cat etc/b.txt | uxncli bin/packer.rom bin/b.rom
|
||||
|
||||
echo ">> Running $DST"
|
||||
$EMU -s 3 $DST $ARG
|
||||
|
|
Binary file not shown.
|
@ -197,11 +197,16 @@ JMP2r
|
|||
#0e00 .File/length DEO2
|
||||
;cache/e .File/read DEO2
|
||||
|
||||
;&bfile .File/name DEO2
|
||||
#03d0 .File/length DEO2
|
||||
;cache/b .File/read DEO2
|
||||
|
||||
JMP2r
|
||||
&wfile "bin/w.rom $1
|
||||
&ffile "bin/f.rom $1
|
||||
&cfile "bin/c.rom $1
|
||||
&efile "bin/e.rom $1
|
||||
&bfile "bin/b.rom $1
|
||||
|
||||
(
|
||||
@|controls )
|
||||
|
@ -460,7 +465,7 @@ JMP2r
|
|||
DUP2 #ffff EQU2 ?&skip
|
||||
DUP2 #fffe EQU2 ?&player
|
||||
LDA2k pos-to-screen
|
||||
.camera/y LDZ2 ADD2 #0058 SUB2 .Screen/y DEO2
|
||||
.camera/y LDZ2 ADD2 #0020 SUB2 .Screen/y DEO2
|
||||
.camera/x LDZ2 ADD2 .Screen/x DEO2
|
||||
DUP2 #0003 ADD2 LDA2
|
||||
draw-character
|
||||
|
@ -475,6 +480,9 @@ JMP2r
|
|||
( player )
|
||||
.anim/player/real/x LDZ2 .camera/x LDZ2 ADD2 .Screen/x DEO2
|
||||
.anim/player/real/y LDZ2 .camera/y LDZ2 ADD2 #0058 SUB2 .Screen/y DEO2
|
||||
|
||||
draw-shadow
|
||||
|
||||
;cache/c
|
||||
#00 .pos/back LDZ #0700 MUL2 ADD2
|
||||
;draw-character/flip ;draw-character .pos/flip LDZ #01 AND [ JMP SWP2 POP2 ] JSR2
|
||||
|
@ -492,7 +500,9 @@ JMP2r
|
|||
POP
|
||||
|
||||
JMP2r
|
||||
|
||||
&flip ( addr* -- )
|
||||
|
||||
.Screen/x DEI2k #0038 ADD2 ROT DEO2
|
||||
.Screen/addr DEO2
|
||||
#04 .Screen/auto DEO
|
||||
|
@ -501,6 +511,23 @@ JMP2r
|
|||
#f8 draw-flip
|
||||
INC DUP ?&lf
|
||||
POP
|
||||
|
||||
JMP2r
|
||||
|
||||
@draw-shadow ( -- )
|
||||
|
||||
.Screen/x DEI2
|
||||
.Screen/y DEI2
|
||||
|
||||
.Screen/x DEI2k #0010 ADD2 ROT DEO2
|
||||
.Screen/y DEI2k #0060 ADD2 ROT DEO2
|
||||
#36 .Screen/auto DEO
|
||||
;shadow-icn .Screen/addr DEO2
|
||||
#05 .Screen/sprite DEOk DEO
|
||||
|
||||
.Screen/y DEO2
|
||||
.Screen/x DEO2
|
||||
|
||||
JMP2r
|
||||
|
||||
@draw-marker ( zp -- )
|
||||
|
@ -547,19 +574,19 @@ JMP2r
|
|||
(
|
||||
@|world )
|
||||
|
||||
(
|
||||
( [
|
||||
22 12 02 f2 e2
|
||||
21 11 01 f1 e1
|
||||
20 10 00 f0 e0
|
||||
2f 1f 0f ff ef
|
||||
2e 1e 0e fe ee
|
||||
)
|
||||
] )
|
||||
|
||||
@world
|
||||
|
||||
( lobby )
|
||||
|
||||
&1 -ambience/lobby -theme/white
|
||||
&1 -ambience/lobby -theme/white [
|
||||
00 19 02 02 08 04 02 02 02
|
||||
00 05 02 02 0c 0f
|
||||
00 00 00 00 00 00
|
||||
|
@ -567,7 +594,7 @@ JMP2r
|
|||
11 =e/blocker $3
|
||||
1f =e/pillar-base $3
|
||||
02 =e/gate $3
|
||||
20 =e/door $3
|
||||
20 =e/door $3 ]
|
||||
|
||||
(
|
||||
@|stdlib )
|
||||
|
@ -578,7 +605,7 @@ JMP2r
|
|||
@|assets )
|
||||
|
||||
@events ( x y flip sprite* action* )
|
||||
&a 00 00 00 =cache/e
|
||||
&a 00 00 00 =cache/b
|
||||
|
||||
@pos-lut 08 07 05 06 04 02 03 01 00
|
||||
|
||||
|
@ -604,8 +631,13 @@ JMP2r
|
|||
@cursor-icn 80c0 e0f0 f8e0 1000
|
||||
@cross-icn 1010 10fe 1010 1000
|
||||
|
||||
@shadow-icn
|
||||
0000 0205 0a15 2a15 2a55 aa55 aa55 aa55 a854 aa55 aa55 aa55 0000 8040 a050 a850
|
||||
2a15 0a05 0200 0000 aa55 aa55 aa55 2a00 aa55 aa55 aa54 a800 a850 a040 8000 0000
|
||||
|
||||
@cache
|
||||
&w $3c0
|
||||
&f $280
|
||||
&c $e00
|
||||
&e $380
|
||||
&b $200
|
||||
|
|
Loading…
Reference in New Issue