summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/games/sfcave/sfcave.cpp18
1 files changed, 14 insertions, 4 deletions
diff --git a/noncore/games/sfcave/sfcave.cpp b/noncore/games/sfcave/sfcave.cpp
index 929dc41..5633a8f 100644
--- a/noncore/games/sfcave/sfcave.cpp
+++ b/noncore/games/sfcave/sfcave.cpp
@@ -16,3 +16,3 @@
-#define CAPTION "SFCave 1.11 by AndyQ"
+#define CAPTION "SFCave 1.12 by AndyQ"
@@ -229,2 +229,3 @@ void SFCave :: setUp()
+ int dist[] = { 100, 60, 40 };
if ( CURRENT_GAME_TYPE == SFCAVE_GAME )
@@ -235,2 +236,11 @@ void SFCave :: setUp()
maxDownThrust = MaxDownThrustVals[SFCAVE_GAME_TYPE][currentGameDifficulty];;
+
+ if ( currentCameDifficulty == DIFICULTY_EASY )
+ gateDistance = 100;
+ else if ( currentCameDifficulty == DIFICULTY_EASY )
+ gateDistance = 60;
+ else
+ gateDistance = 40;
+
+ printf( "GD = %d\n", gateDistance );
}
@@ -242,2 +252,4 @@ void SFCave :: setUp()
maxDownThrust = MaxDownThrustVals[GATES_GAME_TYPE][currentGameDifficulty];;
+ gateDistance = 75;
+ nextGate = nextInt( 50 ) + gateDistance;
}
@@ -259,4 +271,2 @@ void SFCave :: setUp()
gapHeight = initialGateGaps[currentGameDifficulty];
- gateDistance = 75;
- nextGate = nextInt( 50 ) + gateDistance;
@@ -370,3 +380,3 @@ void SFCave :: handleGameSFCave()
- if ( nrFrames % 100 == 0 )
+ if ( nrFrames % gateDistance == 0 )
addBlock();