Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .enum ActorType
- empty
- misc_test
- condition_test
- getme
- player
- .endenum
- .proc ActorWidth
- .byt 0
- .byt 16
- .byt 16
- .byt 16
- .byt 16
- .endproc
- .proc ActorHeight
- .byt 0
- .byt 16
- .byt 16
- .byt 16
- .byt 16
- .endproc
- .proc ActorRunLow
- .byt <(DoNothing-1)
- .byt <(actor_run_misc_test-1)
- .byt <(actor_run_condition_test-1)
- .byt <(actor_run_getme-1)
- .byt <(actor_run_player-1)
- .endproc
- .enum ActorRunHigh
- .byt >(DoNothing-1)
- .byt >(actor_run_misc_test-1)
- .byt >(actor_run_condition_test-1)
- .byt >(actor_run_getme-1)
- .byt >(actor_run_player-1)
- .endproc
- .proc ActorInitLow
- .byt <(DoNothing-1)
- .byt <(actor_init_misc_test-1)
- .byt <(actor_init_condition_test-1)
- .byt <(actor_init_getme-1)
- .byt <(actor_init_player-1)
- .endproc
- .proc ActorInitHigh
- .byt >(DoNothing-1)
- .byt >(actor_init_misc_test-1)
- .byt >(actor_init_condition_test-1)
- .byt >(actor_init_getme-1)
- .byt >(actor_init_player-1)
- .endproc
- .proc ActorGraphic
- .byt 0
- .byt $03
- .byt $05
- .byt $e8
- .byt $01
- .endproc
- .proc game_run
- Exit:
- rts
- .endproc
- .proc actor_run_misc_test
- lda #50
- sta 1
- lda #50
- sta 0
- lda #ActorTypes::getme
- jsr ActorCreateAtXY
- nop
- nop
- nop
- jsr subroutine_test
- lda ActorSpeed,x
- cmp #20
- jcs lbl_1
- inc ActorSpeed,x
- jmp lbl_2
- lbl_1:
- lda #0
- sta ActorSpeed,x
- lbl_2:
- Exit:
- rts
- .endproc
- .proc actor_run_condition_test
- lda MicrogameGlobals
- cmp MicrogameGlobals+1
- jcs lbl_3
- inc ActorSpeed,x
- lbl_3:
- lda MicrogameGlobals
- cmp MicrogameGlobals+1
- jcc lbl_5
- inc ActorSpeed,x
- lbl_5:
- lda MicrogameGlobals
- cmp #10
- jcc lbl_9
- lda MicrogameGlobals
- cmp MicrogameGlobals+1
- jcs lbl_7
- lbl_9:
- inc ActorSpeed,x
- lbl_7:
- lda MicrogameGlobals
- cmp #10
- jcs lbl_10
- lda MicrogameGlobals
- cmp MicrogameGlobals+1
- jcs lbl_10
- inc ActorSpeed,x
- lbl_10:
- Exit:
- rts
- .endproc
- .proc actor_run_getme
- lda #1
- sta ActorSpeed,x
- jsr ActorBallMovement
- lda #ActorTypes::player
- jsr ActorTouchingType
- jcc lbl_12
- lda #0
- sta ActorType,x
- lda #ActorTypes::getme
- jsr ActorFindType
- jcs lbl_14
- jsr WinGame
- lbl_14:
- lbl_12:
- Exit:
- rts
- .endproc
- .proc actor_run_player
- lda #2
- sta ActorSpeed,x
- lda #255
- jsr Actor8WayMovement
- Exit:
- rts
- .endproc
- .proc subroutine_test
- lda #1
- lda #2
- lda #3
- lda #4
- jsr ActorStop
- Exit:
- rts
- .endproc
Add Comment
Please, Sign In to add comment