diff --git a/main.c b/main.c index b02168d..d172da5 100755 --- a/main.c +++ b/main.c @@ -1,6 +1,5 @@ #include #include "constants.h" -#include "settings.h" #include "levels.h" #include "assets.h" @@ -14,9 +13,14 @@ /* ============================= PORTING =================================== */ -/* When porting, define the following in your specific platform_*.h. Also you - have to call SFG_mainLoopBody() in the platform's main loop and SFG_init() - in the platform initialization. Also set specific settings in settings.h */ +/* When porting, do the following: + - implement the following functions in your platform_*.h. + - Call SFG_init() from your platform initialization code. + - Call SFG_mainLoopBody() from within your platform's main loop. + - include "settings.h" in your platform_*.h and optionally hard-override + (redefine) some settings in platform_*.h, according to the platform's + needs. +*/ /** Return 1 (0) if given key is pressed (not pressed). */ int8_t SFG_keyPressed(uint8_t key); diff --git a/platform_sdl.h b/platform_sdl.h index fd70e8f..fa6b87e 100644 --- a/platform_sdl.h +++ b/platform_sdl.h @@ -1,6 +1,8 @@ #ifndef _SFG_PLATFORM_H #define _SFG_PLATFORM_H +#include "settings.h" + #include #include #include