mirror of
https://gitlab.com/drummyfish/anarch.git
synced 2024-12-22 07:18:49 -05:00
Include settings from platform
This commit is contained in:
parent
e3685b58a5
commit
077668f337
12
main.c
12
main.c
@ -1,6 +1,5 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include "constants.h"
|
#include "constants.h"
|
||||||
#include "settings.h"
|
|
||||||
#include "levels.h"
|
#include "levels.h"
|
||||||
#include "assets.h"
|
#include "assets.h"
|
||||||
|
|
||||||
@ -14,9 +13,14 @@
|
|||||||
|
|
||||||
/* ============================= PORTING =================================== */
|
/* ============================= PORTING =================================== */
|
||||||
|
|
||||||
/* When porting, define the following in your specific platform_*.h. Also you
|
/* When porting, do the following:
|
||||||
have to call SFG_mainLoopBody() in the platform's main loop and SFG_init()
|
- implement the following functions in your platform_*.h.
|
||||||
in the platform initialization. Also set specific settings in settings.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). */
|
/** Return 1 (0) if given key is pressed (not pressed). */
|
||||||
int8_t SFG_keyPressed(uint8_t key);
|
int8_t SFG_keyPressed(uint8_t key);
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
#ifndef _SFG_PLATFORM_H
|
#ifndef _SFG_PLATFORM_H
|
||||||
#define _SFG_PLATFORM_H
|
#define _SFG_PLATFORM_H
|
||||||
|
|
||||||
|
#include "settings.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <SDL2/SDL.h>
|
#include <SDL2/SDL.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user