diff options
Diffstat (limited to 'Scripts/init.lua')
-rw-r--r-- | Scripts/init.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Scripts/init.lua b/Scripts/init.lua index 4dfb3b9..20ea044 100644 --- a/Scripts/init.lua +++ b/Scripts/init.lua @@ -13,3 +13,16 @@ local q = comp.Position(6, 3) print(q.x .. "," .. q.y) print("HEY") + +bird = { + Position = { + x = 1.2, + y = 3.4 + }, + init = function(self) + print(self.Position.x .. "," .. self.Position.y) + end +} + +birdSpawn = game.spawn(bird); +birdSpawn:init() |