Skip to content

Commit

Permalink
Custom dog-action
Browse files Browse the repository at this point in the history
  • Loading branch information
skx committed Jul 26, 2024
1 parent 0ee8057 commit 25dd449
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion game.z80
Original file line number Diff line number Diff line change
Expand Up @@ -2739,6 +2739,9 @@ NEWLINE:
db 0x0d, "$"
TAB:
db " $"
kill_dog:
db 0x0d, "We've all been there, we've all had that thought, but that's not the answer.", 0x0d
db "I'm sorry, I really am, but nobody ever dies in Paw Patrol, sadly.", 0x0d, "$"
invalid_msg:
db 0x0d, "I did not understand your input.", 0x0d, 0x0d
db "Enter 'HELP' to see some of our commands.", 0x0d, "$"
Expand Down Expand Up @@ -3224,6 +3227,11 @@ book_actions:
DEFW read_book_function
DEFB 0

dog_actions:
DEFB 4, 'KILL', 0
DEFW kill_dog_function
DEFB 0

rug_actions:
DEFB 4, 'MOVE', 0
DEFW move_rug_function
Expand Down Expand Up @@ -3264,6 +3272,12 @@ read_book_function:
call bios_output_string
ret

;; Custom function "KILL DOG"
kill_dog_function:
ld de, kill_dog
call bios_output_string
ret

;; Custom function "MOVE RUG"
move_rug_function:
call make_trapdoor_visible
Expand Down Expand Up @@ -3449,7 +3463,7 @@ torch_item_long:
DEFB 0 ; item state
DEFB 0 ; this item cannot be picked up
DEFB 0x01 ; middle-floor
DEFB 0,0 ; no custom actions
DEFW dog_actions ; no custom actions

DEFW item_6_name ; painting
DEFB 0,0 ; NO DESCRIPTION - hidden item
Expand Down

0 comments on commit 25dd449

Please sign in to comment.