Roole Game Engine
#2
Audio Module

Well, I also added Roole's own Audio module to let you handle certain audible aspects of your game. Grinning 

Audio module has several module functions like:
  • Audio.state - Returns the current state, true stands for ON, etc.
  • Audio.on! and Audio.off! - Turn on or off the Audio.
  • Audio.on? or Audio.off? - Is it on or not?
  • Audio.current_song - Returns the song currently being played by the engine.
  • Audio.bgm_volume and Audio.bgm_volume=
  • Audio.se_volume and Audio.se_volume=
Audio also have two embedded classes, namely Song and Sample.
Song is like the BGM while Sample is like the SE.

You can create a new instance of Song following this example:

Code:
@song = Audio::Song.new("my song.mp3", true)

Or skip true and it will not loop at all. Winking That is highly convenient for playlists by the way. Grinning

Of course, both Song and Sample do have their own methods like:
  • volume and volume=
  • filename
  • play
Song also include:
  • playing?
  • resume
  • pause and paused?
  • stop and stop?
Sample features this calls instead:
  • speed and speed= and their pitch variants
  • pan and pan=
Obviously, you can rely on Roole's Load module to keep them at hand. Winking 

Code:
@song = Load.bgm('this song.ogg', true)
Happy Game Breaking! Laughing
"For God has not destined us for wrath, but for obtaining salvation through our Lord Jesus Christ," 1 Thessalonians 5:9

Maranatha!

The Internet might be either your friend or enemy. It just depends on whether or not she has a bad hair day.

[Image: SP1-Scripter.png]
[Image: SP1-Writer.png]
[Image: SP1-Poet.png]
[Image: SP1-PixelArtist.png]
[Image: SP1-Reporter.png]

My Original Stories (available in English and Spanish)

List of Compiled Binary Executables I have published...
HiddenChest & Roole

Give me a free copy of your completed game if you include at least 3 of my scripts! Laughing + Tongue sticking out

Just some scripts I've already published on the board...
KyoGemBoost XP VX & ACE, RandomEnkounters XP, KSkillShop XP, Kolloseum States XP, KEvents XP, KScenario XP & Gosu, KyoPrizeShop XP Mangostan, Kuests XP, KyoDiscounts XP VX, ACE & MV, KChest XP VX & ACE 2016, KTelePort XP, KSkillMax XP & VX & ACE, Gem Roulette XP VX & VX Ace, KRespawnPoint XP, VX & VX Ace, GiveAway XP VX & ACE, Klearance XP VX & ACE, KUnits XP VX, ACE & Gosu 2017, KLevel XP, KRumors XP & ACE, KMonsterPals XP VX & ACE, KStatsRefill XP VX & ACE, KLotto XP VX & ACE, KItemDesc XP & VX, KPocket XP & VX, OpenChest XP VX & ACE
Reply }


Messages In This Thread
Roole Game Engine - by kyonides - 09-06-2020, 07:30 AM
RE: Roole Game Engine - by kyonides - 09-07-2020, 04:47 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
   Smile Game Builder JayRay 0 2,357 04-22-2022, 02:26 AM
Last Post: JayRay
   LIST of GAME MAKERS kenpachi zaraki 0 4,994 12-16-2018, 08:15 PM
Last Post: kenpachi zaraki
   Game-changing spriting tool hanetzer 3 7,713 03-25-2013, 02:24 PM
Last Post: hanetzer
   Video Game Name Generator amp 3 8,948 05-17-2010, 06:24 PM
Last Post: Boot



Users browsing this thread: 2 Guest(s)