diff --git a/scripts/Game_Player.rb b/scripts/Game_Player.rb index 401defc..213fa2f 100644 --- a/scripts/Game_Player.rb +++ b/scripts/Game_Player.rb @@ -12,8 +12,8 @@ class Game_Player < Game_Character #-------------------------------------------------------------------------- # * Invariables #-------------------------------------------------------------------------- - CENTER_X = ((Graphics.width / 4) - 16) * 4 # Center screen x-coordinate * 4 - CENTER_Y = ((Graphics.height / 4) - 16) * 4 # Center screen y-coordinate * 4 + CENTER_X = ((Graphics.width / 2) - 16) * 4 # Center screen x-coordinate * 4 + CENTER_Y = ((Graphics.height / 2) - 16) * 4 # Center screen y-coordinate * 4 #-------------------------------------------------------------------------- # * Passable Determinants # x : x-coordinate diff --git a/scripts/Spriteset_Map.rb b/scripts/Spriteset_Map.rb index 138b8fc..4935d25 100644 --- a/scripts/Spriteset_Map.rb +++ b/scripts/Spriteset_Map.rb @@ -78,7 +78,7 @@ class Spriteset_Map @timer_sprite = Sprite_Timer.new # Make lightbulb sprite @bulb = Sprite.new(@viewport_lights) - @bulb.x = -80 + @bulb.x = 0 if Graphics.width == 1280 @bulb.bitmap = RPG::Cache.light('bulb_16') else diff --git a/src/audio.cpp b/src/audio.cpp index 2215a6d..1965978 100644 --- a/src/audio.cpp +++ b/src/audio.cpp @@ -301,7 +301,7 @@ int Audio::getBGM_Volume() const{ return p->bgm_volume; } -void Audio::setBGM_Volume(short value){ +void Audio::setBGM_Volume(int value){ if(value > 100){ value = 100; }else if(value < 0){ @@ -320,7 +320,7 @@ int Audio::getSFX_Volume() const{ return p->sfx_volume; } -void Audio::setSFX_Volume(short value){ +void Audio::setSFX_Volume(int value){ if(value > 100){ value = 100; }else if(value < 0){ diff --git a/src/audiostream.cpp b/src/audiostream.cpp index e1f8f97..67591af 100644 --- a/src/audiostream.cpp +++ b/src/audiostream.cpp @@ -134,7 +134,7 @@ void AudioStream::play(const std::string &filename, int volume, int pitch, float stream.setPitch(_pitch); if (offset > 0){ -0 setVolume(FadeIn, 0); + setVolume(FadeIn, 0); startFadeIn(); } diff --git a/src/tilemap.cpp b/src/tilemap.cpp index eb57fa2..bcb08fc 100644 --- a/src/tilemap.cpp +++ b/src/tilemap.cpp @@ -62,10 +62,10 @@ static const int atAreaW = autotileW * 4; static const int atAreaH = autotileH * autotileCount; static const int tsLaneW = tilesetW / 2; - /* Map viewport size */ -static const int viewpW = 21; -static const int viewpH = 16; +//TODO: разные значения под разные разрешения экрана для оптимизации +static const int viewpW = 42; +static const int viewpH = 26; static const size_t zlayersMax = viewpH + 5;