basic stuff w movemet n collision done

This commit is contained in:
0x81c 2015-03-12 04:05:39 -04:00
parent 03112bb0fb
commit bffa27ec01
4 changed files with 25 additions and 15 deletions

View file

@ -23,14 +23,14 @@ function Room:initialize(t)
self.activeColors[color] = true
end
for i=0, 20 do
for i=0, 50 do
local c = randomColor()
local x, y = math.random(1, gridWidth), math.random(1, gridHeight)
self.collideables[c]["b: " .. x .. ", " .. y] = Box:new(x, y, c)
end
for i=0, 20 do
for i=0, 50 do
local c = randomColor()
local x, y = math.random(1, gridWidth), math.random(1, gridHeight)
self.collideables[c]["w: " .. x .. ", " .. y] = Wall:new(x, y, c)