Breeze: basics

Inside config.hpp there are three most important functions:
OnLaunch(), which runs immediately when the game launches
is launched, cannot be redefined. UpdateVars() updates
in-engine variables and should not be redefined, because all the logic will break.
And DoScripts() is a function that updates every frame and
can be redefined in a file you work in.

Scenes

You can load scenes using conf::LoadScene(scene_name);


#include "config.hpp";
#include "sceneconf.hpp"

//Inside of sceneconf.hpp, it is defined as
bool LoadScene(std::string scene, bool ignoreCurrentScene = false)

//ignoreCurrentScene = false means if you try to load a scene that
//is already loaded, the engine will simply ignore this command.


conf::LoadScene("example") // loads maps/MAP_BREEZE_example.json 

//other scene-related things


//sceneconf.hpp
namespace scene {
    inline Color color = {0,0,0,255};
    inline Vector2 initSpawnPos = {0,0};
    inline std::string current = "";

    inline int gridSize = 20;

    inline std::string GetCurrentScene(bool inJson = false)
    {
        if (inJson) {
            return "MAP_BREEZE_" + current + ".json";
        }
        return current;
    }
}

//Example