examples/moveplayer: add 4 players

This commit is contained in:
Kazhnuz 2019-05-02 18:47:01 +02:00
parent 56a269dd57
commit bbf8d02254
2 changed files with 29 additions and 1 deletions

View file

@ -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"] = "!"
}
},
}

View file

@ -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