06-06-2024, 07:32 AM
Another Stable Version is Available!
Release 1.1.78
Recent Changes
- Added New Methods to Audio Module:
- default_bgm_loop & default_bgm_loop=
- default_bgs_loop & default_bgs_loop=
- bgs_playing? & bgs_stopped? & bgs_paused? & bgs_loop? & bgs_loop=
- bgm_paused? & bgm_loop? & bgm_loop=
- default_bgm_loop & default_bgm_loop=
- Splash Screen can now be as small as 320x240 or as big as your final game window!
- Removed Audio's bgm_loop & bgm_no_loop methods
- Removed Default Splash Screen, keeping the window invisible until it is time to display the title screen
This prevents the engine from displaying 2 splash screens in a row
- Removed Terms module that nobody used
- Updated BGMNoLoopXP Ruby Script
- Updated README & LEEME Files
Here is a sample script you can use as your custom splash screen.

Don't forget to read the notes embedded in the script!

Game::SplashScene Script
(Using this module & its nested class is mandatory indeed.)
Code:
# * Game::SplashScene * #
# - Just A Custom Version - #
# Scripter : Kyonides Arkanthes
# 2024-06-05
# The game developer is not supposed to redefine the scene's main method.
# You need to take care of both start & terminate contents only.
# You better call Graphics.resize_screen or Graphics.resize to ensure that
# the whole splash backdrop will be properly displayed on screen.
module Game
class SplashScene
def start
Graphics.hide_window
filename = "Graphics/Splash/screen"
splash = Bitmap.new(filename)
w = splash.width
h = splash.height
@backdrop = Sprite.new
@backdrop.bitmap = splash
@title = Sprite.new
b = Bitmap.new(w, h)
font = b.font
font.size = 52
font.outline = true
font.outline_size = 6
text = "Loading..."
b.draw_text(0, 0, b.width, b.height, text, 1)
@title.bitmap = b
Graphics.resize(w, h)
Graphics.center_window
Graphics.show_window
end
def terminate
@title.bitmap.dispose
@title.dispose
@backdrop.bitmap.dispose
@backdrop.dispose
end
end
end