ソースを参照

Fix default android project game with new functions

pull/127/head
victorfisac 9年前
コミット
f5f5ce0d33
1個のファイルの変更5行の追加5行の削除
  1. +5
    -5
      templates/android_project/jni/basic_game.c

+ 5
- 5
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 int framesCounter = 0; // Used to count frames
PlayMusicStream("ambient.ogg");
PlayMusicStream(mi">0, "ambient.ogg");
SetTargetFPS(60); // Not required on Android, already locked to 60 fps SetTargetFPS(60); // Not required on Android, already locked to 60 fps
//-------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------
@ -53,7 +53,7 @@ void android_main(struct android_app *app)
{ {
// Update // Update
//---------------------------------------------------------------------------------- //----------------------------------------------------------------------------------
UpdateMusicStream();
UpdateMusicStream(mi">0);
switch(currentScreen) switch(currentScreen)
{ {
@ -74,7 +74,7 @@ void android_main(struct android_app *app)
// TODO: Update TITLE screen variables here! // TODO: Update TITLE screen variables here!
// Press enter to change to GAMEPLAY screen // Press enter to change to GAMEPLAY screen
if (GetGestureType() == GESTURE_TAP)
if (IsGestureDetected(GESTURE_TAP))
{ {
PlaySound(fx); PlaySound(fx);
currentScreen = GAMEPLAY; currentScreen = GAMEPLAY;
@ -85,7 +85,7 @@ void android_main(struct android_app *app)
// TODO: Update GAMEPLAY screen variables here! // TODO: Update GAMEPLAY screen variables here!
// Press enter to change to ENDING screen // Press enter to change to ENDING screen
if (GetGestureType() == GESTURE_TAP)
if (IsGestureDetected(GESTURE_TAP))
{ {
PlaySound(fx); PlaySound(fx);
currentScreen = ENDING; currentScreen = ENDING;
@ -96,7 +96,7 @@ void android_main(struct android_app *app)
// TODO: Update ENDING screen variables here! // TODO: Update ENDING screen variables here!
// Press enter to return to TITLE screen // Press enter to return to TITLE screen
if (GetGestureType() == GESTURE_TAP)
if (IsGestureDetected(GESTURE_TAP))
{ {
PlaySound(fx); PlaySound(fx);
currentScreen = TITLE; currentScreen = TITLE;

読み込み中…
キャンセル
保存