aboutsummaryrefslogtreecommitdiffstats
path: root/Scripts/init.lua
blob: 4dfb3b93ca06605456d24bd598000a30a6560ea5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--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 = comp:Position(6.5, 2.3)
local q = comp.Position(6, 3)
print(q.x .. "," .. q.y)

print("HEY")