improvement: use the first team member on battle/shoot maps
This commit is contained in:
parent
d3cb2c9052
commit
d0229f8aff
3 changed files with 3 additions and 3 deletions
|
@ -6,7 +6,9 @@ function Player:new(world, x, y, z, id)
|
|||
Player.super.new(self, world, "player", x, y, 0, 16, 12, 24, true)
|
||||
self:setGravity(480*2)
|
||||
|
||||
self:setSprite("sonic", 8, 10)
|
||||
self.charName = game.characters.team[1]
|
||||
self.assets:addSprite("player", "datas/gamedata/characters/" .. self.charName .. "/sprites")
|
||||
self:setSprite("player", 8, 10)
|
||||
self:cloneSprite()
|
||||
|
||||
self.guiborder = game.gui.newBorder(424, 20, 6)
|
||||
|
|
|
@ -3,7 +3,6 @@ return {
|
|||
{"shadow", "assets/sprites/shadow.png"}
|
||||
},
|
||||
["sprites"] = {
|
||||
{"sonic", "datas/gamedata/characters/sonic/sprites"},
|
||||
{"ring", "assets/sprites/items/ring"}
|
||||
},
|
||||
["imagefonts"] = {
|
||||
|
|
|
@ -3,7 +3,6 @@ return {
|
|||
{"shadow", "assets/sprites/shadow.png"}
|
||||
},
|
||||
["sprites"] = {
|
||||
{"sonic", "datas/gamedata/characters/sonic/sprites"},
|
||||
{"ring", "assets/sprites/items/ring"}
|
||||
},
|
||||
["imagefonts"] = {
|
||||
|
|
Loading…
Reference in a new issue