aboutsummaryrefslogtreecommitdiffstats
path: root/Scripts
diff options
context:
space:
mode:
authorAndy Belle-Isle <drumsetmonkey@gmail.com>2019-08-29 01:39:40 -0400
committerAndy Belle-Isle <drumsetmonkey@gmail.com>2019-08-29 01:39:40 -0400
commite9758416b18b27a65337c28d9641afc0ee89b34b (patch)
tree2e4d3037aa5dbc71206c91a36ca7d00e108036ba /Scripts
parent41addc2d6b600e9cade63884de1c13dba662dc31 (diff)
Created (very messy) script system
Diffstat (limited to 'Scripts')
-rw-r--r--Scripts/init.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/Scripts/init.lua b/Scripts/init.lua
index 20ea044..5b0f915 100644
--- a/Scripts/init.lua
+++ b/Scripts/init.lua
@@ -24,5 +24,19 @@ bird = {
end
}
+dog = {
+ Position = {
+ x = 6.5,
+ y = 1.3
+ },
+ init = function(self)
+ print(self.Position.x .. "," .. self.Position.y)
+ end
+}
+
birdSpawn = game.spawn(bird);
birdSpawn:init()
+
+dogSpawn = game.spawn(dog);
+dogSpawn:init()
+dogSpawn.Position.x = 37.5