One of Gideros Studio's benefits include easy to use and understand API, which has just exceeded 470 functions and classes. We are gearing towards a complete mobile development environment, bundled with an easy-to-use IDE and SDK. Our forum is constantly improving and filling up with questions and answers, and one of the most exciting things we encounter is the fast evolution of sample applications and games built with Gideros Studio. We are really thrilled! Devs, keep up the good work!
To help Giderans (short form of Gideros devs) easily code their applications, we are releasing a sample "Gideros Scene Manager". This is a collection of Lua files including several examples of how to manage your scene. "Where would I need it?" you may ask. Let's explain. In most applications and games, you have different scenes (e.g menu, scoreboard, game screen, platform, inventory screen, end-of-game screen etc). You need to put your sprites in each of these screens, and one way or another, provide a transition method between them. Since you are building your next-award-winning-game, these transitions cannot be left without an effect.
Gideros Scene Manager comes handy at this stage, when you easily want your scenes pass one after another. For example, in an e-book, you code all of your pages and then allow Gideros Scene Manager to show each scene. Transitions between scenes are not static, you can use many transitions between them. Transitions include fade, move, over and flip, and dualities of these transitions, like move with fade, over with fade, crossfade, flip with shade, flip with fade etc. You do not have to bother with any of these transition methods.
Last but not least, here is a list of scene transitions used in Gideros Scene Manager. They are all self-explanatory, so we didn't bother to write what each transition means:
Move functions
[list type="arrow_right"]
SceneManager.moveFromLeft
SceneManager.moveFromRight
SceneManager.moveFromBottom
SceneManager.moveFromLeftWithFade
SceneManager.moveFromRightWithFade
SceneManager.moveFromBottomWithFade
SceneManager.moveFromTopWithFade
[/list]
Overlay functions
[list type="arrow_right"]
SceneManager.overFromLeft
SceneManager.overFromRight
SceneManager.overFromBottom
SceneManager.overFromLeftWithFade
SceneManager.overFromRightWithFade
SceneManager.overFromBottomWithFade
SceneManager.overFromTopWithFade
[/list]
Fade & flip functions
[list type="arrow_right"]
SceneManager.flipWithFade
SceneManager.flipWithShade
[/list]
It should be noted that we have 4 events dispatched to the scene sprites added to Scene Manager, these are:
[list type="arrow_right"]
enterBegin: Dispatched when your new scene is about to enter the stage. You can initialize your variables here.
enterEnd: Dispatched after the transition of new scene has ended. Mostly, you add listeners and start your logic here.
exitBegin: Dispatched when your current scene is about to leave the stage. You can remove listeners and stop timers here.
exitEnd: Dispatched after your current scene has leaved the stage.
[/list]
The video below shows an overview of the Gideros Scene Manager.
Check it from Github now !