partial refactor continued

This commit is contained in:
Kistaro Windrider 2024-08-20 01:21:13 -07:00
parent a4658e3ef4
commit 7869192dee
Signed by: kistaro
SSH Key Fingerprint: SHA256:TBE2ynfmJqsAf0CP6gsflA0q5X5wD5fVKWPsZ7eVUg8

View File

@ -664,7 +664,7 @@ zap_e = bullet_base.new{
height = 8
},
x_off = 1, -- how to position by ship
y_off = 0,
y_off = 8,
damage = 1,
dx = 0, -- px/frame
@ -679,6 +679,7 @@ mknew(zap_e)
zap_p = zap_e.new{
sprite = 8,
dy = 8,
y_off = 0,
category = player_blt_cat,
}
mknew(zap_p)
@ -752,7 +753,7 @@ blast_gun = gun_base.new{
}
mknew(blast_gun)
protron = bullet_base.new{
protron_e = bullet_base.new{
--shape
psprite = 23, --index of player ammo sprite
esprite = 24, -- index of enemy ammo sprite
@ -764,15 +765,25 @@ protron = bullet_base.new{
width = 2,
height = 2
},
center_x_off = 1, -- how to position by ship
bottom_y_off = 4,
top_y_off = 0,
x_off = 1, -- how to position by ship
y_off = 4,
damage = 1,
dx = 0, -- px/frame
dy = 3,
dy = -3,
category = enemy_blt_cat,
}
mknew(protron)
mknew(protron_e)
protron_p = protron_e.new{
sprite=23,
dy = 6,
y_off = 0,
category=player_blt_cat,
}
mknew(protron_p)
-- XXX Bookmark for bullet refactor
protron_gun = gun_base.new{
icon = 25,