more bear animations
This commit is contained in:
parent
d55b27caab
commit
412b024b13
49
kodiak.tal
49
kodiak.tal
|
@ -1,8 +1,6 @@
|
||||||
( kodiak.tal )
|
( kodiak.tal )
|
||||||
|
|
||||||
( TODO )
|
( TODO )
|
||||||
( * display message on win )
|
|
||||||
( * make bear react to moving cards )
|
|
||||||
( * buttons, stock flash when clicked )
|
( * buttons, stock flash when clicked )
|
||||||
( * save game file? stats? )
|
( * save game file? stats? )
|
||||||
( * card sounds? )
|
( * card sounds? )
|
||||||
|
@ -330,12 +328,19 @@
|
||||||
#80 .Screen/sprite DEOk DEO
|
#80 .Screen/sprite DEOk DEO
|
||||||
JMP2r
|
JMP2r
|
||||||
|
|
||||||
@draw-face ( x* y* addr* -> )
|
( @draw-face ( x* y* addr* -> )
|
||||||
.Screen/addr DEO2
|
.Screen/addr DEO2
|
||||||
.Screen/y DEO2
|
.Screen/y DEO2
|
||||||
.Screen/x DEO2
|
.Screen/x DEO2
|
||||||
#16 .Screen/auto DEO
|
#16 .Screen/auto DEO
|
||||||
#80 .Screen/sprite DEOk DEO JMP2r
|
#80 .Screen/sprite DEOk DEO JMP2r )
|
||||||
|
|
||||||
|
@draw-mouth ( x* y* addr* -> )
|
||||||
|
#0020 ADD2 .Screen/addr DEO2
|
||||||
|
#0008 ADD2 .Screen/y DEO2
|
||||||
|
.Screen/x DEO2
|
||||||
|
#16 .Screen/auto DEO
|
||||||
|
#80 .Screen/sprite DEO JMP2r
|
||||||
|
|
||||||
@draw-about-content ( -> )
|
@draw-about-content ( -> )
|
||||||
|
|
||||||
|
@ -347,10 +352,10 @@
|
||||||
#0078 #0048 #3b draw-xyc
|
#0078 #0048 #3b draw-xyc
|
||||||
|
|
||||||
#0060 #0038 #80 draw-bear
|
#0060 #0038 #80 draw-bear
|
||||||
#0060 #0038 ;sprites #00c0 ADD2 draw-face
|
#0060 #0038 ;sprites #00c0 ADD2 draw-mouth
|
||||||
|
|
||||||
#00a8 #0038 #90 draw-bear
|
#00a8 #0038 #90 draw-bear
|
||||||
#0090 #0038 ;sprites #0100 ADD2 draw-face
|
#0090 #0038 ;sprites #0100 ADD2 draw-mouth
|
||||||
|
|
||||||
#0038 #0070 ;line1 print-str
|
#0038 #0070 ;line1 print-str
|
||||||
#0040 #0078 ;line2 print-str
|
#0040 #0078 ;line2 print-str
|
||||||
|
@ -414,13 +419,23 @@
|
||||||
#0008 #00b4 restart-button-addr draw-button
|
#0008 #00b4 restart-button-addr draw-button
|
||||||
#0030 #00b4 ;quit-button draw-button
|
#0030 #00b4 ;quit-button draw-button
|
||||||
#0058 #00b4 audio-button-addr draw-button
|
#0058 #00b4 audio-button-addr draw-button
|
||||||
#0080 #00b4 ;about-button draw-button
|
#0080 #00b4 ;about-button !draw-button
|
||||||
is-game-won ?draw-you-win JMP2r
|
|
||||||
|
@draw-bear-normal ( -> )
|
||||||
|
#00e8 #0098 ;sprites !draw-mouth
|
||||||
|
|
||||||
|
@draw-bear-smile ( -> )
|
||||||
|
#00e8 #0098 ;sprites #00c0 ADD2 !draw-mouth
|
||||||
|
|
||||||
|
@draw-bear-oh ( -> )
|
||||||
|
#00e8 #0098 ;sprites #0100 ADD2 !draw-mouth
|
||||||
|
|
||||||
|
@draw-you-win ( -> )
|
||||||
|
|
||||||
|
draw-bear-smile
|
||||||
|
|
||||||
@draw-you-win
|
|
||||||
#0048 .Screen/x DEO2
|
#0048 .Screen/x DEO2
|
||||||
#c6 .Screen/auto DEO
|
#c6 .Screen/auto DEO
|
||||||
|
|
||||||
#8f #0008 draw-you-win/draw
|
#8f #0008 draw-you-win/draw
|
||||||
#80 #0020 draw-you-win/draw
|
#80 #0020 draw-you-win/draw
|
||||||
#85 #0038 draw-you-win/draw
|
#85 #0038 draw-you-win/draw
|
||||||
|
@ -434,7 +449,8 @@
|
||||||
.Screen/sprite DEOk DEO JMP2r
|
.Screen/sprite DEOk DEO JMP2r
|
||||||
|
|
||||||
@draw-decorations ( -> )
|
@draw-decorations ( -> )
|
||||||
#00e8 #0098 #80 !draw-bear
|
#00e8 #0098 #80 draw-bear
|
||||||
|
is-game-won ?draw-you-win JMP2r
|
||||||
|
|
||||||
@draw-stock ( -> )
|
@draw-stock ( -> )
|
||||||
.stock LDZk #00 EQU ?&empty ( stock^ )
|
.stock LDZk #00 EQU ?&empty ( stock^ )
|
||||||
|
@ -674,13 +690,10 @@
|
||||||
|
|
||||||
@on-refresh-bear ( -> )
|
@on-refresh-bear ( -> )
|
||||||
.about LDZ ?on-refresh-about-bears
|
.about LDZ ?on-refresh-about-bears
|
||||||
load-bear-frame ORAk ?&update POP2 JMP2r
|
( .frame LDZ #00 EQU ?draw-bear-normal )
|
||||||
&update .Screen/addr DEO2 ( ; s/addr<-addr )
|
.dragging LDZ #00 EQU ?{ draw-bear-oh }
|
||||||
#0098 .Screen/y DEO2 ( ; s/x<-0x98 )
|
load-bear-frame ORAk ?{ POP2 JMP2r }
|
||||||
#00e8 .Screen/x DEO2 ( ; s/y<-0xe8 )
|
#00e8 #0098 !draw-bear-eyes
|
||||||
#16 .Screen/auto DEO ( ; draw 2 tiles, inc addr and y )
|
|
||||||
#80 .Screen/sprite DEO ( ; draw it! )
|
|
||||||
JMP2r
|
|
||||||
|
|
||||||
@on-mouse ( -> brk )
|
@on-mouse ( -> brk )
|
||||||
on-move
|
on-move
|
||||||
|
|
Loading…
Reference in New Issue