Difference between revisions of "Modules/game/state/Settings"

From MSX Game Library

< Modules‎ | game‎ | state

Line 2: Line 2:
 
<syntaxhighlight lang="c">
 
<syntaxhighlight lang="c">
 
// Game state setting
 
// Game state setting
#define GAME_USE_STATE TRUE // Add state machine features
+
#define GAME_USE_STATE TRUE // Add state machine features
#define GAME_USE_VSYNC TRUE // Add vertical synchronization features
+
#define GAME_USE_VSYNC TRUE // Add vertical synchronization features
#define GAME_USE_LOOP TRUE // Add game main loop with call to v-synch and state
+
#define GAME_USE_LOOP TRUE // Add game main loop with call to v-synch and state
 +
#define GAME_USE_SYNC_50HZ TRUE // Force 50Hz synchronization on 60Hz machine
 
</syntaxhighlight>
 
</syntaxhighlight>

Revision as of 00:10, 23 September 2025

Library configuration (msxgl_config.h):

// Game state setting
#define GAME_USE_STATE				TRUE	// Add state machine features
#define GAME_USE_VSYNC				TRUE	// Add vertical synchronization features
#define GAME_USE_LOOP				TRUE	// Add game main loop with call to v-synch and state
#define GAME_USE_SYNC_50HZ			TRUE	// Force 50Hz synchronization on 60Hz machine