This commit is contained in:
Aria 2025-03-21 22:23:30 +11:00
commit 9c94d113d3
Signed by untrusted user who does not match committer: aria
GPG key ID: 19AB7AA462B8AB3B
10260 changed files with 1237388 additions and 0 deletions

View file

@ -0,0 +1,10 @@
{
"frameGrid" : {
"size" : [12, 12],
"dimensions" : [4, 1],
"names" : [
[ "0", "1", "2", "3" ]
]
}
}

View file

@ -0,0 +1,22 @@
require "/scripts/vec2.lua"
function init()
end
function update()
end
function control(direction)
mcontroller.approachVelocity(vec2.mul(vec2.norm(direction), config.getParameter("maxSpeed")), config.getParameter("controlForce"))
end
function controlTo(position)
local offset = world.distance(position, mcontroller.position())
mcontroller.approachVelocity(vec2.mul(vec2.norm(offset), config.getParameter("maxSpeed")), config.getParameter("controlForce"))
end
function isDrone()
return true
end

Binary file not shown.

After

Width:  |  Height:  |  Size: 448 B

View file

@ -0,0 +1,25 @@
{
"projectileName" : "drone",
"clientEntityMode" : "ClientPresenceMaster",
"physics" : "hover",
"image" : "drone.png",
"animationCycle" : 0.04,
"pointLight" : true,
"lightColor" : [170, 210, 255],
"frameNumber" : 4,
"damageKindImage" : "icon.png",
"timeToLive" : 60,
"actionOnReap" : [
{
"action" : "config",
"file" : "/projectiles/explosions/regularexplosion2/regularexplosion2.config"
}
],
"speed" : 10,
"power" : 0,
"onlyHitTerrain" : true,
"damageKind" : "default",
"scripts" : [ "drone.lua" ],
"controlForce" : 20,
"maxSpeed" : 20
}