diff options
author | Andy Belle-Isle <drumsetmonkey@gmail.com> | 2019-08-28 00:57:57 -0400 |
---|---|---|
committer | Andy Belle-Isle <drumsetmonkey@gmail.com> | 2019-08-28 00:57:57 -0400 |
commit | 85fb2bff38b2ef6cb17e86c5f602ee09a365b117 (patch) | |
tree | a8066d33233ec9b6a2b9bb281a1de040ab96be7b /Scripts/init.lua | |
parent | 787393dd86d6c37b5680847dd4eef14406a86687 (diff) |
Added LuaBridge support
Diffstat (limited to 'Scripts/init.lua')
-rw-r--r-- | Scripts/init.lua | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/Scripts/init.lua b/Scripts/init.lua index ded10ec..4dfb3b9 100644 --- a/Scripts/init.lua +++ b/Scripts/init.lua @@ -1,11 +1,15 @@ -Player = entityx.manager:new() -function Player:init(o) - o = o or {} - self.position = self:component("Position", o.position or {0, 0}) -end +--Player = entityx.manager:new() +--function Player:init(o) +-- o = o or {} +-- self.position = self:component("Position", o.position or {0, 0}) +--end +-- +--p = Player:instance({position = {10, 20}}) +--p.position.x(5) +--print(p.position.x(), p.position.y()) -p = Player:instance({position = {10, 20}}) -p.position.x(5) -print(p.position.x(), p.position.y()) +--p = comp:Position(6.5, 2.3) +local q = comp.Position(6, 3) +print(q.x .. "," .. q.y) print("HEY") |