2019-03-13 04:15:41 +00:00
|
|
|
local stage, players, objects, projectiles, act, images = ...
|
|
|
|
return {
|
|
|
|
info = {
|
|
|
|
name = "Vulcan1",
|
|
|
|
description = "Fires three shots that damages panel behind!",
|
|
|
|
cooldown = {
|
|
|
|
shoot = 6,
|
|
|
|
move = 4
|
|
|
|
}
|
|
|
|
},
|
|
|
|
logic = function(info)
|
|
|
|
if info.frame == 0 then
|
|
|
|
info.player.canMove = false
|
|
|
|
info.player.canShoot = false
|
|
|
|
else
|
|
|
|
if info.frame == 3 * 2 + 1 then
|
|
|
|
info.player.canMove = true
|
|
|
|
info.player.canShoot = true
|
|
|
|
info.player.cooldown.shoot = 6
|
|
|
|
info.player.cooldown.shoot = 4
|
|
|
|
return false
|
|
|
|
elseif info.frame % 2 == 0 then
|
2019-03-13 17:56:51 +00:00
|
|
|
act.projectile.newProjectile(info.x, info.y, info.player, "vulcan_internal", info.frame < 3 * 2)
|
2019-03-13 04:15:41 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
return true
|
|
|
|
end
|
|
|
|
}
|