basic stuff w movemet n collision done
This commit is contained in:
parent
03112bb0fb
commit
bffa27ec01
4 changed files with 25 additions and 15 deletions
4
room.lua
4
room.lua
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue