diff options
| author | Ray <[email protected]> | 2016-07-15 19:44:18 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2016-07-15 19:44:18 +0200 |
| commit | a2794379a0e1e2ab1486888aaa710f65d492e0fc (patch) | |
| tree | acd8185cf8574ccba8fab46ccdbca30f9a3cd895 /templates/android_project/jni/basic_game.c | |
| parent | 1c98e6b698b8002e0c6c769c6d9f23a6e15f3bdf (diff) | |
| parent | fc19e24eba4358b3afb052f80425af4947b172d6 (diff) | |
| download | raylib-a2794379a0e1e2ab1486888aaa710f65d492e0fc.tar.gz raylib-a2794379a0e1e2ab1486888aaa710f65d492e0fc.zip | |
Merge pull request #132 from raysan5/develop
Develop branch integration
Diffstat (limited to 'templates/android_project/jni/basic_game.c')
| -rw-r--r-- | templates/android_project/jni/basic_game.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/templates/android_project/jni/basic_game.c b/templates/android_project/jni/basic_game.c index 8a0413c3..a1adb287 100644 --- a/templates/android_project/jni/basic_game.c +++ b/templates/android_project/jni/basic_game.c @@ -43,7 +43,7 @@ void android_main(struct android_app *app) int framesCounter = 0; // Used to count frames - PlayMusicStream("ambient.ogg"); + PlayMusicStream(0, "ambient.ogg"); SetTargetFPS(60); // Not required on Android, already locked to 60 fps //-------------------------------------------------------------------------------------- @@ -53,7 +53,7 @@ void android_main(struct android_app *app) { // Update //---------------------------------------------------------------------------------- - UpdateMusicStream(); + UpdateMusicStream(0); switch(currentScreen) { @@ -74,7 +74,7 @@ void android_main(struct android_app *app) // TODO: Update TITLE screen variables here! // Press enter to change to GAMEPLAY screen - if (GetGestureType() == GESTURE_TAP) + if (IsGestureDetected(GESTURE_TAP)) { PlaySound(fx); currentScreen = GAMEPLAY; @@ -85,7 +85,7 @@ void android_main(struct android_app *app) // TODO: Update GAMEPLAY screen variables here! // Press enter to change to ENDING screen - if (GetGestureType() == GESTURE_TAP) + if (IsGestureDetected(GESTURE_TAP)) { PlaySound(fx); currentScreen = ENDING; @@ -96,7 +96,7 @@ void android_main(struct android_app *app) // TODO: Update ENDING screen variables here! // Press enter to return to TITLE screen - if (GetGestureType() == GESTURE_TAP) + if (IsGestureDetected(GESTURE_TAP)) { PlaySound(fx); currentScreen = TITLE; |
