fixed
This commit is contained in:
parent
b4905845e6
commit
d5a60336f5
3 changed files with 28 additions and 13 deletions
24
room.lua
24
room.lua
|
|
@ -1,6 +1,14 @@
|
|||
Room = class("Room")
|
||||
require "player"
|
||||
|
||||
function Room:initialize()
|
||||
function Room:initialize(t)
|
||||
self.exits = t.exits
|
||||
self.name = t.name
|
||||
self.player = {}
|
||||
|
||||
for color, coords in ipairs(t.playerColors) do
|
||||
self.player[color] = Player:new(coords.x, coords.y, color)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
|
|
@ -10,4 +18,18 @@ end
|
|||
|
||||
function Room:update()
|
||||
|
||||
end
|
||||
|
||||
function Room:tick()
|
||||
self:nextRoomCheck()
|
||||
end
|
||||
|
||||
function Room:nextRoomCheck()
|
||||
|
||||
end
|
||||
|
||||
function nextRoom()
|
||||
-- currentRoom = Room:new{
|
||||
|
||||
-- }
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue