From 1830e390bb76463bcbffbb53898a92ffd9c3ddfa Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Sat, 27 Jul 2019 13:56:14 +0200 Subject: [PATCH] improvement: pull a bit down the view center --- sonic-radiance.love/game/modules/world/actors/player.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sonic-radiance.love/game/modules/world/actors/player.lua b/sonic-radiance.love/game/modules/world/actors/player.lua index 4f11d64..3371728 100644 --- a/sonic-radiance.love/game/modules/world/actors/player.lua +++ b/sonic-radiance.love/game/modules/world/actors/player.lua @@ -63,6 +63,11 @@ function Player:setDirection(direction) end end +function Player:getViewCenter() + local x, y = Player.super.getViewCenter(self) + return x, y-16 +end + function Player:draw() Player.super.draw(self) end