mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-19 13:29:54 +00:00
a
This commit is contained in:
parent
ede3ba5782
commit
1f9ee9644e
6 changed files with 42 additions and 3 deletions
|
|
@ -148,3 +148,6 @@ Modloader.ModsDirPath="mods"
|
||||||
# Use default path for saves and settings like if you run game
|
# Use default path for saves and settings like if you run game
|
||||||
# without mods
|
# without mods
|
||||||
Modloader.use_default_save_path=false
|
Modloader.use_default_save_path=false
|
||||||
|
|
||||||
|
# Pancake episode specific tweaks
|
||||||
|
pancakes=false
|
||||||
|
|
|
||||||
|
|
@ -66,6 +66,11 @@ class Game_Temp
|
||||||
attr_accessor :menus_visible
|
attr_accessor :menus_visible
|
||||||
attr_accessor :countdown_password
|
attr_accessor :countdown_password
|
||||||
attr_accessor :igt_timer_visible
|
attr_accessor :igt_timer_visible
|
||||||
|
|
||||||
|
# For Pancake episode
|
||||||
|
attr_accessor :igt_timer_final_time
|
||||||
|
attr_accessor :igt_timer_stopped
|
||||||
|
|
||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
# * Object Initialization
|
# * Object Initialization
|
||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
|
|
@ -125,7 +130,9 @@ class Game_Temp
|
||||||
@menus_visible = false
|
@menus_visible = false
|
||||||
@countdown_password = ""
|
@countdown_password = ""
|
||||||
@igt_timer_visible = false
|
@igt_timer_visible = false
|
||||||
RPG::Mod.exec_hooks("hooks/Game_Temp/init", binding)
|
#Panckake episode
|
||||||
|
@igt_timer_stopped = false
|
||||||
|
@igt_timer_final_time = 0
|
||||||
end
|
end
|
||||||
|
|
||||||
def bgm_fadein(game_system)
|
def bgm_fadein(game_system)
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ class Scene_Title
|
||||||
MENU_X = Graphics.width - 150
|
MENU_X = Graphics.width - 150
|
||||||
MENU_Y = Graphics.height - 100
|
MENU_Y = Graphics.height - 100
|
||||||
SDLVer = "#{Sunshine::SDLVersion_major}.#{Sunshine::SDLVersion_minor}.#{Sunshine::SDLVersion_micro}"
|
SDLVer = "#{Sunshine::SDLVersion_major}.#{Sunshine::SDLVersion_minor}.#{Sunshine::SDLVersion_micro}"
|
||||||
SunshineVer = "0.1.1-dev"
|
SunshineVer = "0.1.4-dev"
|
||||||
|
|
||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
# * Main Processing
|
# * Main Processing
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,24 @@ RUE_TEXT = "put me in the big portal"
|
||||||
SUPPORTED_DE = ["cinnamon", "mate", "kde", "xfce", "gnome", "lxde", "lxqt"]
|
SUPPORTED_DE = ["cinnamon", "mate", "kde", "xfce", "gnome", "lxde", "lxqt"]
|
||||||
|
|
||||||
module Script
|
module Script
|
||||||
|
#For Pancake episode support###
|
||||||
|
def self.start_plight_timer
|
||||||
|
$game_oneshot.bruteforce_start = Graphics.frame_count
|
||||||
|
end
|
||||||
|
|
||||||
|
def self.plight_timer_vars
|
||||||
|
if($game_oneshot.bruteforce_start == nil)
|
||||||
|
$game_oneshot.bruteforce_start = Graphics.frame_count
|
||||||
|
end
|
||||||
|
time_passed = Graphics.frame_count - $game_oneshot.bruteforce_start
|
||||||
|
seconds = time_passed / 60
|
||||||
|
digit1 = seconds % 60
|
||||||
|
digit2 = (seconds - digit1) / 60
|
||||||
|
$game_variables[29] = digit2
|
||||||
|
$game_variables[30] = digit1
|
||||||
|
end
|
||||||
|
################################
|
||||||
|
|
||||||
def self.px
|
def self.px
|
||||||
logpos($game_player.x, $game_player.real_x, $game_player.direction == 6)
|
logpos($game_player.x, $game_player.real_x, $game_player.direction == 6)
|
||||||
end
|
end
|
||||||
|
|
@ -778,3 +796,8 @@ def activate_balcony?(ypos)
|
||||||
$game_player.direction == 8 &&
|
$game_player.direction == 8 &&
|
||||||
Input.trigger?(Input::ACTION) && !$game_system.map_interpreter.running? && !$game_temp.menus_visible
|
Input.trigger?(Input::ACTION) && !$game_system.map_interpreter.running? && !$game_temp.menus_visible
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def stop_igt
|
||||||
|
$game_temp.igt_timer_stopped = true
|
||||||
|
$game_temp.igt_timer_final_time = Graphics.frame_count
|
||||||
|
end
|
||||||
|
|
|
||||||
|
|
@ -79,6 +79,7 @@ void Config::read(int argc, char *argv[]){
|
||||||
PO_DESC(defScreenW, int, 640) \
|
PO_DESC(defScreenW, int, 640) \
|
||||||
PO_DESC(defScreenH, int, 480) \
|
PO_DESC(defScreenH, int, 480) \
|
||||||
PO_DESC(windowTitle, std::string, "") \
|
PO_DESC(windowTitle, std::string, "") \
|
||||||
|
PO_DESC(commonDataPath, std::string, "") \
|
||||||
PO_DESC(Modloader.ModsDirPath, std::string,"mods") \
|
PO_DESC(Modloader.ModsDirPath, std::string,"mods") \
|
||||||
PO_DESC(fixedFramerate, int, 0) \
|
PO_DESC(fixedFramerate, int, 0) \
|
||||||
PO_DESC(frameSkip, bool, true) \
|
PO_DESC(frameSkip, bool, true) \
|
||||||
|
|
@ -93,7 +94,8 @@ void Config::read(int argc, char *argv[]){
|
||||||
PO_DESC(SE.sourceCount, int, 6) \
|
PO_DESC(SE.sourceCount, int, 6) \
|
||||||
PO_DESC(pathCache, bool, true) \
|
PO_DESC(pathCache, bool, true) \
|
||||||
PO_DESC(Windows_AllocConsole, bool, false) \
|
PO_DESC(Windows_AllocConsole, bool, false) \
|
||||||
PO_DESC(Modloader.use_default_save_path, bool, false)
|
PO_DESC(Modloader.use_default_save_path, bool, false) \
|
||||||
|
PO_DESC(pancakes, bool, false)
|
||||||
|
|
||||||
// Not gonna take your shit boost
|
// Not gonna take your shit boost
|
||||||
#define GUARD_ALL( exp ) try { exp } catch(...) {}
|
#define GUARD_ALL( exp ) try { exp } catch(...) {}
|
||||||
|
|
@ -171,6 +173,9 @@ void Config::read(int argc, char *argv[]){
|
||||||
gameFolder.append(SDL_GetAndroidInternalStoragePath()).append("/Sunshine");
|
gameFolder.append(SDL_GetAndroidInternalStoragePath()).append("/Sunshine");
|
||||||
#else
|
#else
|
||||||
commonDataPath = prefPath(".", "Sunshine");
|
commonDataPath = prefPath(".", "Sunshine");
|
||||||
|
if(pancakes){
|
||||||
|
commonDataPath = prefPath(".", "Sunshine_Pancakes");
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if(windowTitle == "")
|
if(windowTitle == "")
|
||||||
|
|
|
||||||
|
|
@ -35,6 +35,7 @@ struct Config{
|
||||||
bool Windows_AllocConsole;
|
bool Windows_AllocConsole;
|
||||||
bool smoothScaling;
|
bool smoothScaling;
|
||||||
bool vsync;
|
bool vsync;
|
||||||
|
bool pancakes;
|
||||||
int defScreenW;
|
int defScreenW;
|
||||||
int defScreenH;
|
int defScreenH;
|
||||||
std::string windowTitle;
|
std::string windowTitle;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue