Entity = {x=0,y=0, id="", gravity=9, frames={}}
function Entity:foo()
print "foo"
end
function Entity:baz()
print (self.x)
end
function Entity:new (o)
o = o or {}
setmetatable(o, self)
self.__index = self
o.var=100
return o
end
player = Entity:new{ex="ex"}
print(player.var)
print(player.x)
print(player.ex)
player:foo()
function player:foo()
self.y = 15
return self.y
end
print (player:foo())
player.x = 5
print(player.x)
player:baz()
print(player.y)
zed = {}
zed[1] = 3
print(zed[1])
function player:zep(x,y)
self.x = x
self.y = y
end
print("")
player:zep(-100,-200)
print(player.x)
print(player.y)
l = {1,2,3}
k = {4,5,6}
j=l..k