mirror of
https://github.com/LDDestroier/CC/
synced 2024-12-13 19:50:29 +00:00
18 lines
416 B
Plaintext
18 lines
416 B
Plaintext
local stage, players, objects, projectiles, act, images = ...
|
|
return {
|
|
info = {
|
|
name = "RockCube",
|
|
description = "Creates a cube-shaped rock!",
|
|
cooldown = {
|
|
shoot = 6,
|
|
move = 4
|
|
}
|
|
},
|
|
logic = function(info)
|
|
if act.stage.checkIfWalkable(info.x + info.direction, info.y) then
|
|
act.object.newObject(info.x + info.direction, info.y, info.owner, info.direction, "rockcube")
|
|
end
|
|
return false
|
|
end
|
|
}
|