sm_effect_3.asm
defame-demogroup_c64_sa2019invite/rsrc/sm_effect_3.asm
.pc = $1000 "SM EFFECT DEFINITION"
SM_OFFSETS: //x offset of each statemachine (sets initial start location and then updated per frame)
.byte $00,$01,$02,$03,$04,$05
.byte $00,$01,$02,$03,$04,$05
.byte $00,$01,$02,$03,$04,$05
.byte $00,$01,$02,$03,$04,$05
.byte $00,$01,$02,$03,$04,$05
.byte $00,$01,$02,$03,$04,$05
.byte $00,$01,$02,$03,$04,$05
.byte $00,$01,$02,$03,$04,$05
.byte $00,$01,$02,$03,$04,$05
.byte $00,$01,$02,$03,$04,$05
.byte $00,$01,$02,$03,$04,$05
.byte $00,$01,$02,$03,$04,$05
.byte $00,$01,$02,$03,$04,$05
.byte $00,$01,$02,$03,$04,$05
.byte $00,$01,$02,$03,$04,$05
.byte $00,$01,$02,$03,$04,$05
.byte $00,$01,$02,$03,$04,$05
.byte $00,$01,$02,$03,$04,$05
.byte $00,$01,$02,$03,$04,$05
.byte $00,$01,$02,$03,$04,$05
.byte $00,$01,$02,$03,$04,$05
.byte $00,$01,$02,$03,$04,$05
.byte $00,$01,$02,$03,$04,$05
.byte $00,$01,$02,$03,$04,$05
.byte $00,$01,$02,$03,$04,$05

.align $100
SM_STEPS: //number of steps the sm should do before it dies
.byte $07,$07,$07,$07,$06,$06
.byte $07,$07,$07,$07,$06,$06
.byte $07,$07,$07,$07,$06,$06
.byte $07,$07,$07,$07,$06,$06
.byte $07,$07,$07,$07,$06,$06
.byte $07,$07,$07,$07,$06,$06
.byte $07,$07,$07,$07,$06,$06
.byte $07,$07,$07,$07,$06,$06
.byte $07,$07,$07,$07,$06,$06
.byte $07,$07,$07,$07,$06,$06
.byte $07,$07,$07,$07,$06,$06
.byte $07,$07,$07,$07,$06,$06
.byte $07,$07,$07,$07,$06,$06
.byte $07,$07,$07,$07,$06,$06
.byte $07,$07,$07,$07,$06,$06
.byte $07,$07,$07,$07,$06,$06
.byte $07,$07,$07,$07,$06,$06
.byte $07,$07,$07,$07,$06,$06
.byte $07,$07,$07,$07,$06,$06
.byte $07,$07,$07,$07,$06,$06
.byte $07,$07,$07,$07,$06,$06
.byte $07,$07,$07,$07,$06,$06
.byte $07,$07,$07,$07,$06,$06
.byte $07,$07,$07,$07,$06,$06
.byte $07,$07,$07,$07,$06,$06

.align $100
SM_DELTAS: //distance deltas of each state machine - high bit is subtraction
.byte $06,$06,$06,$06,$06,$06
.byte $06,$06,$06,$06,$06,$06
.byte $06,$06,$06,$06,$06,$06
.byte $06,$06,$06,$06,$06,$06
.byte $06,$06,$06,$06,$06,$06
.byte $06,$06,$06,$06,$06,$06
.byte $06,$06,$06,$06,$06,$06
.byte $06,$06,$06,$06,$06,$06
.byte $06,$06,$06,$06,$06,$06
.byte $06,$06,$06,$06,$06,$06
.byte $06,$06,$06,$06,$06,$06
.byte $06,$06,$06,$06,$06,$06
.byte $06,$06,$06,$06,$06,$06
.byte $06,$06,$06,$06,$06,$06
.byte $06,$06,$06,$06,$06,$06
.byte $06,$06,$06,$06,$06,$06
.byte $06,$06,$06,$06,$06,$06
.byte $06,$06,$06,$06,$06,$06
.byte $06,$06,$06,$06,$06,$06
.byte $06,$06,$06,$06,$06,$06
.byte $06,$06,$06,$06,$06,$06
.byte $06,$06,$06,$06,$06,$06
.byte $06,$06,$06,$06,$06,$06
.byte $06,$06,$06,$06,$06,$06
.byte $06,$06,$06,$06,$06,$06

.align $100
SM_DELAYS: //initial frame delays for each state machine
.byte $01,$03,$05,$07,$09,$0b
.byte $05,$07,$09,$0b,$0d,$0f
.byte $09,$0b,$0d,$0f,$11,$13
.byte $0d,$0f,$11,$13,$15,$17
.byte $11,$13,$15,$17,$19,$1b
.byte $15,$17,$19,$1b,$1d,$1f
.byte $19,$1b,$1d,$1f,$21,$23
.byte $1d,$1f,$21,$23,$25,$27
.byte $21,$23,$25,$27,$29,$2b
.byte $25,$27,$29,$2b,$2d,$2f
.byte $29,$2b,$2d,$2f,$31,$33
.byte $2d,$2f,$31,$33,$35,$37
.byte $31,$33,$35,$37,$39,$3b
.byte $35,$37,$39,$3b,$3d,$3f
.byte $39,$3b,$3d,$3f,$41,$43
.byte $3d,$3f,$41,$43,$45,$47
.byte $41,$43,$45,$47,$49,$4b
.byte $45,$47,$49,$4b,$4d,$4f
.byte $49,$4b,$4d,$4f,$51,$53
.byte $4d,$4f,$51,$53,$55,$57
.byte $51,$53,$55,$57,$59,$5b
.byte $55,$57,$59,$5b,$5d,$5f
.byte $59,$5b,$5d,$5f,$61,$63
.byte $5d,$5f,$61,$63,$65,$67
.byte $61,$63,$65,$67,$69,$6b
