92 __attribute__((noinline))
104 virtual ~Scene() =
default;
120 extern Scene* __MAIN_SCENE__;
122 extern void init_main_scene();
125 extern SceneCom __SceneComInstance__;
129#define dsc_launch(scene_t,...) void DSC::init_main_scene(){DSC::__MAIN_SCENE__=new scene_t(__VA_ARGS__);}
Class responsible with event registration and execution.
Definition: event.hpp:76
An active game execution part
Definition: scene.hpp:17
Event key_held
Key held event.
Definition: scene.hpp:99
Scene()=default
Creates a new Scene instance
Event key_down
Key down event.
Definition: scene.hpp:96
virtual void frame()
The Scene main loop logic. This method is executed at VBlank.
virtual void init()
Contains Scene initialization routines (setting variables, loading VRAM etc.)
Event key_up
Key up event.
Definition: scene.hpp:102
SceneCom * close()
Closes this scene and clears all its resources.
Inter-Scene communication object.
Definition: scene.hpp:112
void next(Scene *new_scene)
Loads the next scene.