Skip to content

Instantly share code, notes, and snippets.

@shoffing
Last active August 29, 2015 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shoffing/050dca1e07420b879d6e to your computer and use it in GitHub Desktop.
Save shoffing/050dca1e07420b879d6e to your computer and use it in GitHub Desktop.
{
"name": "(TODO) Simple Ship Mk I",
"parts": [
{
"type": "brain",
"pos": [0,0]
},
{
"type": "hull",
"pos": [-1,0],
"welds": [0]
},
{
"type": "hull",
"pos": [1,0],
"welds": [0]
},
{
"name": "leftThruster",
"type": "thruster",
"pos": [-1,-1],
"rot": 0,
"welds": [1]
},
{
"name": "rightThruster",
"type": "thruster",
"pos": [1,-1],
"rot": 0,
"welds": [2]
},
{
"type": "turret",
"pos": [0,1],
"rot": 0,
"welds": [0]
}
]
}
function Update()
if math.floor(os.clock() / 3) % 2 == 0 then
leftThruster:SetThrust(0)
rightThruster:SetThrust(0.5)
else
leftThruster:SetThrust(0.5)
rightThruster:SetThrust(0)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment