; Phantom Star ; by ; Joe Pemberton ; ; This source is public domain. Feel free to modify it or use it however you ; like, but please credit me. ; weaponoffsettable: .dw weapondata0 .dw weapondata1 .dw weapondata2 .dw weapondata3 .dw weapondata4 .dw weapondata5 .dw weapondata6 ; timer(1), pathptr(2), x(1), y(1), spriteptr(2), damage(1) ; weapondatatable: weapondata0: .db 1 ; one bullet .db 150 ; timer max .dw shotpath0 ; pointer to this shot's path .db 7 ; x offset of +7 .db 2 ; y offset of +2 .dw shotspr5 ; pointer to this shot's sprite .db 3 ; damage weapondata1: .db 1 .db 150 ; timer max .dw shotpath9 ; pointer to this shot's path .db 7 ; x offset of +7 .db 2 ; y offset of +2 .dw shotspr0 ; pointer to this shot's sprite .db 4 ; damage weapondata2: .db 1 .db 150 ; timer max .dw shotpath9 ; pointer to this shot's path .db 7 ; x offset of +7 .db 2 ; y offset of +2 .dw shotspr3 ; pointer to this shot's sprite .db 5 ; damage weapondata3: .db 2 .db 127 .dw shotpath1 .db 7 .db 6 .dw shotspr1 .db 3 .db 127 .dw shotpath2 .db 7 .db -1 .dw shotspr2 .db 3 weapondata4: .db 2 .db 127 .dw shotpath7 .db 2 .db -2 .dw shotspr0 .db 4 .db 127 .dw shotpath8 .db 2 .db 6 .dw shotspr0 .db 4 weapondata5: .db 2 .db 31 ;timer .dw shotpath9 .db 6 .db -2 .dw shotspr3 .db 5 .db 31 ;timer .dw shotpath9 .db 6 .db 7 .dw shotspr3 .db 5 weapondata6: .db 2 .db 31 ;timer .dw shotpath4 .db 6 .db 4 .dw shotspr3 .db 7 .db 31 ;timer .dw shotpath3 .db 6 .db 1 .dw shotspr3 .db 7 leftfriendweapondata0: .db 150 ;timer max .dw shotpath0 ;pointer to this shot's path .db 3 ;x offset .db -5-1 ;y offset .dw shotspr0 ;pointer to this shot's sprite .db 1 ;damage leftfriendweapondata1: .db 150 ;timer max .dw shotpath0 ;pointer to this shot's path .db 3 ;x offset .db -5-1 ;y offset .dw shotspr5 ;pointer to this shot's sprite .db 2 ;damage leftfriendweapondata2: .db 150 ;timer max .dw shotpath0 ;pointer to this shot's path .db 3 ;x offset .db -5-1 ;y offset .dw shotspr3 ;pointer to this shot's sprite .db 3 ;damage friendweapontable: .dw leftfriendweapondata0 .dw leftfriendweapondata1 .dw leftfriendweapondata2 shotspr: shotspr0: .db 3 ;This shot has a height of 3 .db %01111100 .db %11111110 .db %01111100 shotspr1: .db 3 .db %11111000 .db %11111111 .db %00011111 shotspr2: .db 3 .db %00011111 .db %11111111 .db %11111000 shotspr3: .db 3 .db %11111000 .db %11111111 .db %11111000 shotspr5: .db 2 .db %11111100 .db %11111100 ; ; sets of x,y offsets that are added to the shots ; coords each frame ; ; the first byte is ANDed with the timer ; shotpath: ;in x,y format shotpath0: .db %00000000 .db 4,0 shotpath1: .db %00000011 .db 5,1 .db 4,0 .db 5,0 .db 4,0 shotpath2: .db %00000011 .db 5,-1 .db 4,0 .db 5,0 .db 4,0 shotpath3: .db %00001111 .db 4,2 .db 4,1 .db 4,1 .db 4,0 .db 4,0 .db 4,-1 .db 4,-1 .db 4,-2 .db 4,-2 .db 4,-1 .db 4,-1 .db 4,0 .db 4,0 .db 4,1 .db 4,1 .db 4,2 shotpath4: .db %00001111 .db 4,-2 .db 4,-1 .db 4,-1 .db 4,0 .db 4,0 .db 4,1 .db 4,1 .db 4,2 .db 4,2 .db 4,1 .db 4,1 .db 4,0 .db 4,0 .db 4,-1 .db 4,-1 .db 4,-2 shotpath7: .db %00011111 .db 6,0 .db 6,0 .db 6,0 .db 6,0 .db 6,0 .db 6,0 .db 6,0 .db 6,0 .db 6,0 .db 6,0 .db 5,0 .db 5,0 .db 5,0 .db 5,0 .db 5,0 .db 5,0 .db 5,0 .db 5,0 .db 4,0 .db 4,0 .db 4,0 .db 4,0 .db 4,0 .db 4,1 .db 3,1 .db 3,2 .db 3,1 .db 2,0 .db 2,0 .db 1,-1 .db 1,-2 .db 0,-2 shotpath8: .db %00011111 .db 6,0 .db 6,0 .db 6,0 .db 6,0 .db 6,0 .db 6,0 .db 6,0 .db 6,0 .db 6,0 .db 6,0 .db 5,0 .db 5,0 .db 5,0 .db 5,0 .db 5,0 .db 5,0 .db 5,0 .db 5,0 .db 4,0 .db 4,0 .db 4,0 .db 4,0 .db 4,0 .db 4,-1 .db 4,-1 .db 3,-2 .db 3,-1 .db 2,0 .db 2,0 .db 1,1 .db 1,2 .db 0,2 shotpath9: .db %00000000 .db 5,0