boxes n walls n movement etcgit status
This commit is contained in:
parent
9763040c99
commit
2772ec2563
10 changed files with 318 additions and 45 deletions
23
box.lua
Normal file
23
box.lua
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
require "entity"
|
||||
|
||||
Box = class("Box", Entity)
|
||||
|
||||
function Box:initialize(x, y, color)
|
||||
Entity.initialize(self, {
|
||||
x = x,
|
||||
y = y,
|
||||
sizeX = 1,
|
||||
sizeY = 1,
|
||||
color = color,
|
||||
collision = "moveable",
|
||||
sprite = boxSprite[color]
|
||||
})
|
||||
end
|
||||
|
||||
function Box:update()
|
||||
|
||||
end
|
||||
|
||||
function Box:tick()
|
||||
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue