mirror of
https://github.com/LDDestroier/CC/
synced 2024-12-14 20:20:29 +00:00
25 lines
604 B
Plaintext
25 lines
604 B
Plaintext
local stage, players, objects, projectiles, act, images = ...
|
|
return {
|
|
info = {
|
|
name = "MegaBuster",
|
|
description = "Fires a weak shot forwards!",
|
|
cooldown = {
|
|
shoot = 4,
|
|
move = 2
|
|
}
|
|
},
|
|
logic = function(info)
|
|
info.x = info.x + (4 / stage.panelWidth) * info.direction
|
|
|
|
act.stage.setDamage(info.x, info.y, info.player.busterPower or 1, info.owner, 1, true)
|
|
|
|
local struckPlayer, struckObject = act.projectile.checkProjectileCollisions(info)
|
|
|
|
if info.frame > 50 or struckPlayer or struckObject then
|
|
return false
|
|
else
|
|
return true, {{images.buster, info.x, info.y}}
|
|
end
|
|
end
|
|
}
|