partial refactor continued
This commit is contained in:
parent
a4658e3ef4
commit
7869192dee
@ -664,7 +664,7 @@ zap_e = bullet_base.new{
|
|||||||
height = 8
|
height = 8
|
||||||
},
|
},
|
||||||
x_off = 1, -- how to position by ship
|
x_off = 1, -- how to position by ship
|
||||||
y_off = 0,
|
y_off = 8,
|
||||||
|
|
||||||
damage = 1,
|
damage = 1,
|
||||||
dx = 0, -- px/frame
|
dx = 0, -- px/frame
|
||||||
@ -679,6 +679,7 @@ mknew(zap_e)
|
|||||||
zap_p = zap_e.new{
|
zap_p = zap_e.new{
|
||||||
sprite = 8,
|
sprite = 8,
|
||||||
dy = 8,
|
dy = 8,
|
||||||
|
y_off = 0,
|
||||||
category = player_blt_cat,
|
category = player_blt_cat,
|
||||||
}
|
}
|
||||||
mknew(zap_p)
|
mknew(zap_p)
|
||||||
@ -752,7 +753,7 @@ blast_gun = gun_base.new{
|
|||||||
}
|
}
|
||||||
mknew(blast_gun)
|
mknew(blast_gun)
|
||||||
|
|
||||||
protron = bullet_base.new{
|
protron_e = bullet_base.new{
|
||||||
--shape
|
--shape
|
||||||
psprite = 23, --index of player ammo sprite
|
psprite = 23, --index of player ammo sprite
|
||||||
esprite = 24, -- index of enemy ammo sprite
|
esprite = 24, -- index of enemy ammo sprite
|
||||||
@ -764,15 +765,25 @@ protron = bullet_base.new{
|
|||||||
width = 2,
|
width = 2,
|
||||||
height = 2
|
height = 2
|
||||||
},
|
},
|
||||||
center_x_off = 1, -- how to position by ship
|
x_off = 1, -- how to position by ship
|
||||||
bottom_y_off = 4,
|
y_off = 4,
|
||||||
top_y_off = 0,
|
|
||||||
|
|
||||||
damage = 1,
|
damage = 1,
|
||||||
dx = 0, -- px/frame
|
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{
|
protron_gun = gun_base.new{
|
||||||
icon = 25,
|
icon = 25,
|
||||||
|
Loading…
Reference in New Issue
Block a user