mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-19 21:39:57 +00:00
meow
This commit is contained in:
parent
e59ac9f339
commit
908e9d7bca
5 changed files with 9 additions and 9 deletions
|
|
@ -12,8 +12,8 @@ class Game_Player < Game_Character
|
||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
# * Invariables
|
# * Invariables
|
||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
CENTER_X = ((Graphics.width / 4) - 16) * 4 # Center screen x-coordinate * 4
|
CENTER_X = ((Graphics.width / 2) - 16) * 4 # Center screen x-coordinate * 4
|
||||||
CENTER_Y = ((Graphics.height / 4) - 16) * 4 # Center screen y-coordinate * 4
|
CENTER_Y = ((Graphics.height / 2) - 16) * 4 # Center screen y-coordinate * 4
|
||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
# * Passable Determinants
|
# * Passable Determinants
|
||||||
# x : x-coordinate
|
# x : x-coordinate
|
||||||
|
|
|
||||||
|
|
@ -78,7 +78,7 @@ class Spriteset_Map
|
||||||
@timer_sprite = Sprite_Timer.new
|
@timer_sprite = Sprite_Timer.new
|
||||||
# Make lightbulb sprite
|
# Make lightbulb sprite
|
||||||
@bulb = Sprite.new(@viewport_lights)
|
@bulb = Sprite.new(@viewport_lights)
|
||||||
@bulb.x = -80
|
@bulb.x = 0
|
||||||
if Graphics.width == 1280
|
if Graphics.width == 1280
|
||||||
@bulb.bitmap = RPG::Cache.light('bulb_16')
|
@bulb.bitmap = RPG::Cache.light('bulb_16')
|
||||||
else
|
else
|
||||||
|
|
|
||||||
|
|
@ -301,7 +301,7 @@ int Audio::getBGM_Volume() const{
|
||||||
return p->bgm_volume;
|
return p->bgm_volume;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Audio::setBGM_Volume(short value){
|
void Audio::setBGM_Volume(int value){
|
||||||
if(value > 100){
|
if(value > 100){
|
||||||
value = 100;
|
value = 100;
|
||||||
}else if(value < 0){
|
}else if(value < 0){
|
||||||
|
|
@ -320,7 +320,7 @@ int Audio::getSFX_Volume() const{
|
||||||
return p->sfx_volume;
|
return p->sfx_volume;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Audio::setSFX_Volume(short value){
|
void Audio::setSFX_Volume(int value){
|
||||||
if(value > 100){
|
if(value > 100){
|
||||||
value = 100;
|
value = 100;
|
||||||
}else if(value < 0){
|
}else if(value < 0){
|
||||||
|
|
|
||||||
|
|
@ -134,7 +134,7 @@ void AudioStream::play(const std::string &filename, int volume, int pitch, float
|
||||||
stream.setPitch(_pitch);
|
stream.setPitch(_pitch);
|
||||||
|
|
||||||
if (offset > 0){
|
if (offset > 0){
|
||||||
0 setVolume(FadeIn, 0);
|
setVolume(FadeIn, 0);
|
||||||
startFadeIn();
|
startFadeIn();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -62,10 +62,10 @@ static const int atAreaW = autotileW * 4;
|
||||||
static const int atAreaH = autotileH * autotileCount;
|
static const int atAreaH = autotileH * autotileCount;
|
||||||
|
|
||||||
static const int tsLaneW = tilesetW / 2;
|
static const int tsLaneW = tilesetW / 2;
|
||||||
|
|
||||||
/* Map viewport size */
|
/* Map viewport size */
|
||||||
static const int viewpW = 21;
|
//TODO: разные значения под разные разрешения экрана для оптимизации
|
||||||
static const int viewpH = 16;
|
static const int viewpW = 42;
|
||||||
|
static const int viewpH = 26;
|
||||||
|
|
||||||
static const size_t zlayersMax = viewpH + 5;
|
static const size_t zlayersMax = viewpH + 5;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue