;----------------------------------
;MOVABLE DATA AND SMALL ROUTINES! -
;----------------------------------

;--------

score ;12 bytes
        .byte 0,0,0,0,0,0,0,0,0,0,0,0

;--------

keycolumn ;6 bytes
        .byte $7f,$fd,$bf,$7f,$bf,$df    ;runstop,lshift,/,space,poundkey,p
keyrow    ;6 bytes
        .byte $80,$80,$80,$10,$01,$02
keyindex  ;6 bytes
        .byte <exitkey,<leftflipper,<rightflipper,<tiltkey,<crsrdown,<pausekey

;--------

leftflipperx   .byte leftflipperxoriginal+$14        ;offset in x position for different
               .byte leftflipperxoriginal+$18        ;animation frames
               .byte leftflipperxoriginal+$18
               .byte leftflipperxoriginal+$18
               .byte leftflipperxoriginal+$18
               .byte leftflipperxoriginal+$18
               .byte leftflipperxoriginal+$14
rightflipperx  .byte rightflipperxoriginal-$14
               .byte rightflipperxoriginal-$18
               .byte rightflipperxoriginal-$18
               .byte rightflipperxoriginal-$18
               .byte rightflipperxoriginal-$18
               .byte rightflipperxoriginal-$18
               .byte rightflipperxoriginal-$14
smallflipperyoffset .byte 8                          ;offset in y position for different
                    .byte 4                          ;animation frames
                    .byte 0
                    .byte 0
                    .byte 256-4
                    .byte 256-6
                    .byte 256-8
bigflipperyoffset   .byte 6+$1c-6
                    .byte 6+$1c-6
                    .byte 3+$1c-6
                    .byte 2+$1c-6
                    .byte 0+$1c-6
                    .byte 0+$1c-6
                    .byte 0+$1c-6
;--------

bitmapspeed
        .byte $e0,$e4,$e8,$ec,$f0,$f4,$f8,$fa,$fc,$fd,$fe,$fe,$ff,$ff   ;14
        .byte 0,0
        .byte 1,1,2,2,3,3,4,4,5,6,7,8,10,12,14,16,20,24,28,32           ;20

;--------

maxmultiply  ;maximum multiply-lenght of each flipper frame

        .byte 25*2,25*2,26*2,26*2,27*2,27*2,27*2,26*2,26*2,26*2,26*2,25*2,25*2

;--------------------------------------------------------------------------------------

;speed of flipper during animation

;----------------------------------------------------------------
;                                                               -
;angles of flipper                                              -
;                                                               -
;frame 0 -26'                                                   -
;frame 1 -17,5'      ->8,5                                      -
;frame 2 -3,3'       ->14,2                                     -
;frame 3 10,4'       ->13,7                                     -
;frame 4 18,6'       ->8,2                                      -
;frame 5 21,6'       ->3,0                                      -
;frame 6 24,4'       ->2,8                                      -
;                                                               -
;r=x/cos(|angle[f]|)                                            -
;speed  = 2*pi*r(pixels)*{[angle(f)-angle(f-1)]/360}  [/frame]  -
;xspeed = speed*sin(angle[f])                                   -
;yspeed = speed*cos(angle[f])                                   -
;                                                               -
;                 xspeed      yspeed                            -
;frame 0->1      0,17,f2    ff,b4,0c                            -
;frame 1->2      0,07,51    ff,81,1c                            -
;frame 2->3     ff,e9,88    ff,85,94                            -
;frame 3->4     ff,e7,58    ff,b6,ba                            -
;frame 4->5     ff,f5,63    ff,e5,32                            -
;frame 5->6     ff,f4,a7    ff,e6,fb                            -
;                                                               -
;----------------------------------------------------------------

;fxspeedhigh  .byte $00,$ff,$ff,$00,$00,$00,$00,  $00,$00,$ff,$ff,$ff,$ff,$00
fxspeedlow    .byte $00,$fa,$fe,$05,$06,$02,$02,  $05,$01,$fa,$f9,$fd,$fd,$00 ;/2
fxspeedfrc    .byte $00,$03,$2c,$9e,$2a,$a7,$d6,  $fc,$d4,$62,$d6,$58,$29,$00 ;/2
;fxspeedlow   .byte $00,$f4,$fc,$0b,$0c,$05,$05,  $0b,$03,$f4,$f3,$fa,$fa,$00
;fxspeedfrc   .byte $00,$07,$58,$3c,$54,$4f,$ad,  $f9,$a8,$c4,$ac,$b1,$53,$00

;fyspeedhigh  .byte $00,$00,$00,$00,$00,$00,$00,  $ff,$ff,$ff,$ff,$ff,$ff,$00
fyspeedlow    .byte $00,$12,$1f,$1e,$12,$06,$06,  $ed,$e0,$e1,$ed,$f9,$f9,$00 ;/2
fyspeedfrc    .byte $00,$fd,$b9,$9b,$51,$b3,$41,  $03,$47,$65,$ae,$4c,$be,$00 ;/2
;fyspeedlow   .byte $00,$25,$3f,$3d,$24,$0d,$0c,  $da,$c0,$c2,$db,$f2,$f3,$00
;fyspeedfrc   .byte $00,$fa,$72,$36,$a3,$67,$83,  $06,$8e,$ca,$5d,$99,$7d,$00








;-----------------------------------------------------------------------------------------------

;---------
;24 bytes-
;---------
gravitydirectiondata .byte $a0,$98,$90,$88,$07,$08,$10,$18,$20,$18,$10,$08,$07,$88,$90,$98,$a0,$98,$90,$88

;--------

spritepointers
        .byte <spriteimage ,<spriteimageb ,<spriteimagec
        .byte <spriteimage2,<spriteimage2b,<spriteimage2c
        .byte <spriteimage3,<spriteimage3b,<spriteimage3c
        .byte >spriteimage ,>spriteimageb ,>spriteimagec
        .byte >spriteimage2,>spriteimage2b,>spriteimage2c
        .byte >spriteimage3,>spriteimage3b,>spriteimage3c

;-----------------------------------------------------------------------------------------------

;-------------
;MOVED DATA! -
;-------------
moved

;---------------------------------
;load positions of empty sites.. -
;---------------------------------

.include .\includes\ignition\source\empty.txt


;-------
;8bytes-
;-------

*=empty8bytes0
addtotimetable    .byte $80,$40,$20,$10,$8,$4,$2,$1
*=empty8bytes1
spriteimagefrom1  .byte <ballsprite1a,<ballsprite1b,<ballsprite1c,<ballsprite1d,<ballsprite1e,<ballsprite1f,<ballsprite1g,<ballsprite1h
*=empty8bytes2
spriteimagefrom2  .byte <ballsprite2a,<ballsprite2b,<ballsprite2c,<ballsprite2d,<ballsprite2e,<ballsprite2f,<ballsprite2g,<ballsprite2h
*=empty8bytes3
spriteimagefrom3  .byte <ballsprite3a,<ballsprite3b,<ballsprite3c,<ballsprite3d,<ballsprite3e,<ballsprite3f,<ballsprite3g,<ballsprite3h
*=empty8bytes4
spriteimagefrom4  .byte >ballsprite1a,>ballsprite1b,>ballsprite1c,>ballsprite1d,>ballsprite1e,>ballsprite1f,>ballsprite1g,>ballsprite1h
*=empty8bytes5
spriteimagefrom5  .byte >ballsprite2a,>ballsprite2b,>ballsprite2c,>ballsprite2d,>ballsprite2e,>ballsprite2f,>ballsprite2g,>ballsprite2h
*=empty8bytes6
spriteimagefrom6  .byte >ballsprite3a,>ballsprite3b,>ballsprite3c,>ballsprite3d,>ballsprite3e,>ballsprite3f,>ballsprite3g,>ballsprite3h
*=empty8bytes7
calcangleeortable .byte $00,$ff,$7f,$00,$ff,$00,$80,$ff
*=empty8bytes8
calcangleadctable .byte $ff,$40,$00,$3f,$00,$bf,$ff,$c0


;-------------------------
;sprite images, 48 bytes -
;-------------------------

.include .\includes\ignition\source\spritepos.txt
.include .\sources\balldata.txt

gridandfont=$c000
.include .\includes\ignition\source\font.txt

*=moved

