diff --git a/sonic-radiance.love/game/modules/world/actors/player.lua b/sonic-radiance.love/game/modules/world/actors/player.lua index 68a2b0b..5eea73b 100644 --- a/sonic-radiance.love/game/modules/world/actors/player.lua +++ b/sonic-radiance.love/game/modules/world/actors/player.lua @@ -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) diff --git a/sonic-radiance.love/scenes/test_scene/assets.lua b/sonic-radiance.love/scenes/test_scene/assets.lua index d749a61..2487d22 100644 --- a/sonic-radiance.love/scenes/test_scene/assets.lua +++ b/sonic-radiance.love/scenes/test_scene/assets.lua @@ -3,7 +3,6 @@ return { {"shadow", "assets/sprites/shadow.png"} }, ["sprites"] = { - {"sonic", "datas/gamedata/characters/sonic/sprites"}, {"ring", "assets/sprites/items/ring"} }, ["imagefonts"] = { diff --git a/sonic-radiance.love/scenes/test_scene2/assets.lua b/sonic-radiance.love/scenes/test_scene2/assets.lua index d749a61..2487d22 100644 --- a/sonic-radiance.love/scenes/test_scene2/assets.lua +++ b/sonic-radiance.love/scenes/test_scene2/assets.lua @@ -3,7 +3,6 @@ return { {"shadow", "assets/sprites/shadow.png"} }, ["sprites"] = { - {"sonic", "datas/gamedata/characters/sonic/sprites"}, {"ring", "assets/sprites/items/ring"} }, ["imagefonts"] = {