aboutsummaryrefslogtreecommitdiffstats
path: root/Scripts
diff options
context:
space:
mode:
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