Platforms/

From ENIGMA

Jump to: navigation, search

This directory contains additionally directories implementing several functions, including the all-important main().

As in other modular SHELL/ directories, this directory contains a _mandatory header. Its specification follows.


Role

Systems under this directory are required to implement the game's main() function. It should call enigma::initialize_everything() once, then set up its displays and input methods before entering its main loop, in which it should invoke enigma::ENIGMA_events(). At the end of the main loop, before disposing everything and before program close, it should make one final call to enigma::game_ending().


Mandatory

void windowsystem_write_exename(char* exenamehere);


void sleep_for_framerate(int framerate);


void input_initialize();


These next functions are standard GML that are an integral part of the system. Each instance must implement these, even if they are unable to do anything on the target platform.


void show_error(string, const bool);


void window_set_caption(string caption);


void window_set_size(unsigned int width, unsigned int height);</code>
Personal tools
Namespaces
Variants
Actions
Navigation
ENIGMA
Other
Toolbox