Hi all,
I hope you are doing well and starting the new school year well!
is::Engine 3.3.4 is released! Now your texts and geometric figures will become more beautiful with these new features:
1. Now you can put texts and geometric forms (Rectangle, Circle) in Outline (Support of SFML functions
setOutlineColor and
setOutlineThickness) on Web and Android.
2. Use text styles (Underline, Bold, Italic, ...) on Web et Android.
3. Correction of bugs. (That was well hidden!)
4. Improved engine resource management (possibility of making your resources permanent and global).
Sample code :
class HelloScene : public is::GameDisplay
{
public:
HelloScene(is::GameSystemExtended &gameSysExt):
GameDisplay(gameSysExt, sf::Color::Black /* => scene color*/) {}
void loadResources()
{
// Load font and texture of the engine
// Allows to load system resource (very important never forgot to call him)
// Also allows the scene to use permanent resources (loaded before this line)
GameDisplay::loadParentResources();
// We load a sound that will be global and permanent in all scenes (Throughout the engine)
m_gameSysExt.GRMaddSound("is_engine_is_cool", is::GameConfig::SFX_DIR + "is_engine_is_cool.wav");
// We load these textures (that will only be used in this scene)
GRMaddTexture("sfml", is::GameConfig::SPRITES_DIR + "sfml.png");
GRMaddTexture("sdl_2", is::GameConfig::SPRITES_DIR + "sdl_2.png");
// We load this font (that will only be used in this scene)
GRMaddFont("yeah", is::GameConfig::FONT_DIR + "yeah.ttf");
// Allows the scene to use sound permanent resources ("is_engine_is_cool.wav" and others)
GRMuseGameSystemSound();
GRMdeleteFont("yeah"); // Manual font Removal
}
};
Have a nice day !