Merge branch 'master' of github.com:Jaxan/Computercraft
This commit is contained in:
commit
125e353211
1 changed files with 15 additions and 0 deletions
15
ninja_turtle
Normal file
15
ninja_turtle
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
-- A ninja turtle. It likes pizza and lays floors.
|
||||||
|
|
||||||
|
ninja_turtle = {
|
||||||
|
current_position = {0, 0, 0},
|
||||||
|
rotation = 0,
|
||||||
|
-- __tostring = function (x) for i,v in pairs(x) do print(i, v) end
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function ninja_turtle:new()
|
||||||
|
o = o or {}
|
||||||
|
setmetatable(o, self)
|
||||||
|
self.___index = self
|
||||||
|
return o
|
||||||
|
end
|
Reference in a new issue