From 7468d16f59a5a0676ee3c2a4ca7743ec568a1cff Mon Sep 17 00:00:00 2001 From: Nick Overdijk Date: Sun, 29 Apr 2012 20:32:48 +0200 Subject: [PATCH] Adds ninja_turtle --- ninja_turtle | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 ninja_turtle diff --git a/ninja_turtle b/ninja_turtle new file mode 100644 index 0000000..bae24ae --- /dev/null +++ b/ninja_turtle @@ -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