blob: ded10ece2df392042258cc17e7b37fcd2d4fb8d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
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())
print("HEY")
|