diff options
| author | Ray <[email protected]> | 2017-10-22 20:43:57 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-10-22 20:43:57 +0200 |
| commit | 8380c488be90ed0c29a6446b490bfaca6574436e (patch) | |
| tree | 04e6dac350ecb354600b1019cc98fdbce03198c1 /games/skully_escape/skully_escape.c | |
| parent | 18601f761935cd81b0f6298e22885c9bc6b5ee6e (diff) | |
| parent | 2ba43b595ec1129bd08b89104d5e0fa962d5b2b8 (diff) | |
| download | raylib-8380c488be90ed0c29a6446b490bfaca6574436e.tar.gz raylib-8380c488be90ed0c29a6446b490bfaca6574436e.zip | |
Merge pull request #371 from raysan5/develop1.8.0
Integrate Develop branch
Diffstat (limited to 'games/skully_escape/skully_escape.c')
| -rw-r--r-- | games/skully_escape/skully_escape.c | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/games/skully_escape/skully_escape.c b/games/skully_escape/skully_escape.c index fb872955..3a0e4cb0 100644 --- a/games/skully_escape/skully_escape.c +++ b/games/skully_escape/skully_escape.c @@ -14,6 +14,10 @@ #include "player.h" +#if defined(PLATFORM_ANDROID) + #include "android_native_app_glue.h" +#endif + #if defined(PLATFORM_WEB) #include <emscripten/emscripten.h> #endif @@ -48,13 +52,19 @@ void UpdateDrawFrame(void); // Update and Draw one frame //---------------------------------------------------------------------------------- // Main entry point //---------------------------------------------------------------------------------- +#if defined(PLATFORM_ANDROID) +void android_main(struct android_app *app) +#else int main(void) +#endif { // Initialization //--------------------------------------------------------- - const char windowTitle[30] = "SKULLY ESCAPE [KING GAMEJAM]"; - - InitWindow(screenWidth, screenHeight, windowTitle); +#if defined(PLATFORM_ANDROID) + InitWindow(screenWidth, screenHeight, app); +#else + InitWindow(screenWidth, screenHeight, "SKULLY ESCAPE [KING GAMEJAM]"); +#endif // Global data loading (assets that must be available in all screens, i.e. fonts) InitAudioDevice(); @@ -102,8 +112,9 @@ int main(void) CloseWindow(); // Close window and OpenGL context //-------------------------------------------------------------------------------------- - +#if !defined(PLATFORM_ANDROID) return 0; +#endif } void TransitionToScreen(int screen) |
