summaryrefslogtreecommitdiffhomepage
path: root/templates/android_project/jni/basic_game.c
diff options
context:
space:
mode:
authorvictorfisac <[email protected]>2016-11-21 20:27:43 +0100
committervictorfisac <[email protected]>2016-11-21 20:27:43 +0100
commit0716125ee93db7539a27e831eba3c856f55601ab (patch)
treeb4ee417efa904f26b6b08bd25d66538ebe267283 /templates/android_project/jni/basic_game.c
parent80f6b2f9635d8e4707b528337c39c0ba7bf9cf5f (diff)
parent918fc002d0e75f5ea15036634edf8aa3fba9bedc (diff)
downloadraylib-0716125ee93db7539a27e831eba3c856f55601ab.tar.gz
raylib-0716125ee93db7539a27e831eba3c856f55601ab.zip
Merge remote-tracking branch 'refs/remotes/raysan5/develop' into develop
Diffstat (limited to 'templates/android_project/jni/basic_game.c')
-rw-r--r--templates/android_project/jni/basic_game.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/templates/android_project/jni/basic_game.c b/templates/android_project/jni/basic_game.c
index 4e8bef31..c801cbaa 100644
--- a/templates/android_project/jni/basic_game.c
+++ b/templates/android_project/jni/basic_game.c
@@ -37,14 +37,13 @@ void android_main(struct android_app *app)
InitAudioDevice(); // Initialize audio device
- Sound fx = LoadSound("coin.wav"); // Load WAV audio file (placed on assets folder)
-
Texture2D texture = LoadTexture("raylib_logo.png"); // Load texture (placed on assets folder)
- int framesCounter = 0; // Used to count frames
-
+ Sound fx = LoadSound("coin.wav"); // Load WAV audio file (placed on assets folder)
Music ambient = LoadMusicStream("ambient.ogg");
PlayMusicStream(ambient);
+
+ int framesCounter = 0; // Used to count frames
SetTargetFPS(60); // Not required on Android, already locked to 60 fps
//--------------------------------------------------------------------------------------