boxes n walls n movement etcgit status

This commit is contained in:
0x81c 2015-03-12 03:04:09 -04:00
parent 9763040c99
commit 2772ec2563
10 changed files with 318 additions and 45 deletions

23
wall.lua Normal file
View file

@ -0,0 +1,23 @@
require "entity"
Wall = class("Wall", Entity)
function Wall:initialize(x, y, color)
Entity.initialize(self, {
x = x,
y = y,
sizeX = 1,
sizeY = 1,
color = color,
collision = "unmoveable",
sprite = wallSprite
})
end
function Wall:update(dt)
end
function Wall:tick()
end