examples/moveplayer: add 4 players
This commit is contained in:
parent
56a269dd57
commit
bbf8d02254
2 changed files with 29 additions and 1 deletions
|
@ -27,4 +27,32 @@ return {
|
|||
["select"] = "space"
|
||||
}
|
||||
},
|
||||
[3] = {
|
||||
type = "keyboard",
|
||||
keys = {
|
||||
["left"] = "f",
|
||||
["right"] = "h",
|
||||
["up"] = "t",
|
||||
["down"] = "g",
|
||||
["A"] = "v",
|
||||
["B"] = "b",
|
||||
["C"] = "n",
|
||||
["start"] = "-",
|
||||
["select"] = "/"
|
||||
}
|
||||
},
|
||||
[4] = {
|
||||
type = "keyboard",
|
||||
keys = {
|
||||
["left"] = "k",
|
||||
["right"] = "m",
|
||||
["up"] = "o",
|
||||
["down"] = "l",
|
||||
["A"] = ",",
|
||||
["B"] = ";",
|
||||
["C"] = ":",
|
||||
["start"] = "*",
|
||||
["select"] = "!"
|
||||
}
|
||||
},
|
||||
}
|
||||
|
|
|
@ -31,7 +31,7 @@ function MovePlayer:new()
|
|||
|
||||
self.world = World(self, "examples.gameplay.moveplayer.actors", "examples/gameplay/moveplayer/assets/arena.lua")
|
||||
|
||||
self.world:setPlayerNumber(2)
|
||||
self.world:setPlayerNumber(4)
|
||||
|
||||
self.world:loadMap()
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue