This commit is contained in:
Issac332 2026-07-19 15:16:33 +03:00
parent 4aee706a43
commit 3cc4835e31

View file

@ -40,7 +40,7 @@ class Game_Player < Game_Character
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
def center(x, y) def center(x, y)
max_x = ($game_map.width - (Graphics.width / 32)) * 128 max_x = ($game_map.width - (Graphics.width / 32)) * 128
max_y = ($game_map.height - (Graphics.height / 28)) * 128 max_y = ($game_map.height - (Graphics.height / 32)) * 128
$game_map.display_x = [0, [x * 128 - @center_x, max_x].min].max $game_map.display_x = [0, [x * 128 - @center_x, max_x].min].max
$game_map.display_y = [0, [y * 128 - @center_y, max_y].min].max $game_map.display_y = [0, [y * 128 - @center_y, max_y].min].max
end end