Salut à tous,
J’espère que vous allez bien et que vous débutez bien la rentrée !
is::Engine 3.3.4 est disponible ! Maintenant vos textes et figures géométriques vont devenir plus beaux avec ces nouveautés :
- Vous pouvez mettre vos textes et figures géométriques (Rectangle et Cercle) en Outline (Prise en charge des fonctions SFML
setOutlineColor et
setOutlineThickness) sur Web et Android.
- Utilisez des styles de textes (Underline, Bold, Italic, ...) sur Web et Android.
- Correction des bugs. (Qui étaient bien cachés !)
- Amélioration de la gestion des ressources du moteur (Possibilité de rendre vos ressources permanentes et globales).
Exemple de 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
}
};
Bonne journée !