mirror of
https://github.com/LDDestroier/CC/
synced 2025-02-03 20:59:10 +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
|
||
|
}
|