Groundwork for fan weapon

This commit is contained in:
blondie7575 2018-07-30 12:36:44 -07:00
parent cf6b75fe9e
commit fb2c5b155e
8 changed files with 16 additions and 7 deletions

BIN
Art/Fan_009.xcf Normal file

Binary file not shown.

BIN
Art/fan_009.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 186 B

Binary file not shown.

Binary file not shown.

View File

@ -6,7 +6,7 @@
;
INVENTORY_ITEMS = 2
INVENTORY_ITEMS = 3
ITEM_WIDTH = 16 ; In pixels
ITEM_HEIGHT = 16 ; In pixels
ICON_WIDTH = 8 ; In pixels

View File

@ -20,7 +20,7 @@ playerData:
.word 100 ; Anger
.byte 8,"SPROCKET " ; Name
.word 1 ; Base Sprite
.word 0,5,0,0,0,0,0,0 ; Inventory
.word 0,5,5,0,0,0,0,0 ; Inventory
.word 0 ; Current weapon
.repeat 88
@ -40,7 +40,7 @@ playerData:
.word 100 ; Anger
.byte 8,"TINKER " ; Name
.word 0 ; Base Sprite
.word 0,5,0,0,0,0,0,0 ; Inventory
.word 0,5,5,0,0,0,0,0 ; Inventory
.word 0 ; Current weapon
.repeat 88

View File

@ -55,6 +55,15 @@ projectileTypes:
.word 0,0,0 ; Padding to 16-byte boundary
; Fan
.word 3 ; Damage
.word 3 ; Crater radius
.word 9 ; Frame 0
.word 9 ; Frame 1
.word 9 ; Frame 2
.word 0,0,0 ; Padding to 16-byte boundary
PT_DAMAGE = 0 ; Byte offsets into projectile type data structure
PT_RADIUS = 2

View File

@ -2,18 +2,18 @@
DrawSpriteBank :
ASL ; A=Sprite Number ($0000-$0008)
ASL ; A=Sprite Number ($0000-$0009)
TAX ; Y=Target Screen Address ($2000-$9D00)
LDA SpriteBankNum,X ; Relative Sprite Number Table
JMP (SpriteBankBank,X) ; Bank Number Table
SpriteBankNum :
.dbyt $0100,$0000,$0500,$0200,$0300,$0700,$0400,$0600
.dbyt $0800
.dbyt $0100,$0000,$0600,$0300,$0400,$0800,$0500,$0700
.dbyt $0900,$0200
SpriteBankBank :
.addr SpriteBankBank00,SpriteBankBank00,SpriteBankBank00,SpriteBankBank00,SpriteBankBank00,SpriteBankBank00,SpriteBankBank00,SpriteBankBank00
.addr SpriteBankBank00
.addr SpriteBankBank00,SpriteBankBank00
SpriteBankBank00 :
JSL $AA0000