Permalink
Browse files

- removed stats Alert, changed readme to mark down

  • Loading branch information...
1 parent 5580a4f commit d6279abfbcccda430decad8f78a63f4969c10d50 @richy486 committed May 29, 2012
Showing with 33 additions and 4 deletions.
  1. +2 −0 Classes/StateLose.h
  2. +4 −0 Classes/StateLose.mm
  3. +2 −0 Classes/StateTitle.h
  4. +4 −0 Classes/StateTitle.mm
  5. +2 −1 Classes/___PROJECTNAMEASIDENTIFIER___AppDelegate.mm
  6. +0 −3 README
  7. +19 −0 README.md
View
@@ -32,7 +32,9 @@ class StateLose : public State
TextBox* m_highScore;
TextBox* m_waves;
TextBox* m_continueText;
+#ifdef USE_GAMECENTER
TextBox* m_gameCentreText;
+#endif
#ifdef USE_BACKGROUNDS
Sprite* m_background;
#endif
View
@@ -179,7 +179,9 @@
if (m_elapsedTime >= s_waitTime)
{
m_continueText->Draw();
+#ifdef USE_GAMECENTER
m_gameCentreText->Draw();
+#endif
}
}
void StateLose::End()
@@ -203,7 +205,9 @@
TextController::GetInstance()->DeleteText(m_highScore);
TextController::GetInstance()->DeleteText(m_waves);
TextController::GetInstance()->DeleteText(m_continueText);
+#ifdef USE_GAMECENTER
TextController::GetInstance()->DeleteText(m_gameCentreText);
+#endif
State::End();
}
View
@@ -30,7 +30,9 @@ class StateTitle : public State
TextBox* m_titleText;
TextBox* m_continueText;
TextBox* m_instructionsText;
+#ifdef USE_GAMECENTER
TextBox* m_gameCentreText;
+#endif
#ifdef USE_BACKGROUNDS
Sprite* m_background;
#endif
View
@@ -97,7 +97,9 @@
m_titleText->Draw();
m_continueText->Draw();
m_instructionsText->Draw();
+#ifdef USE_GAMECENTER
m_gameCentreText->Draw();
+#endif
#ifdef USE_TEST_OBJECTS
//g_test->Draw();
//g_test2->Draw();
@@ -120,7 +122,9 @@
TextController::GetInstance()->DeleteText(m_titleText);
TextController::GetInstance()->DeleteText(m_continueText);
TextController::GetInstance()->DeleteText(m_instructionsText);
+#ifdef USE_GAMECENTER
TextController::GetInstance()->DeleteText(m_gameCentreText);
+#endif
#ifdef USE_TEST_OBJECTS
if (g_test)
@@ -72,6 +72,7 @@ - (void)applicationDidFinishLaunching:(UIApplication *)application
[defaults registerDefaults:appDefs];
//NSUserDefaults *prefs = [NSUserDefaults standardUserDefaults];
+#ifndef DISABLE_STATS
BOOL didDisplayStatsMsg = [defaults boolForKey:@"didDisplayStatsMsg"];
if (!didDisplayStatsMsg)
{
@@ -83,7 +84,7 @@ - (void)applicationDidFinishLaunching:(UIApplication *)application
[alert show];
[alert release];
}
-
+#endif
}
View
3 README
@@ -1,3 +0,0 @@
-public version of the iOS InvaderR game
-
-I have removed references to pebblecube (pebblecube.com), and taken out music and images not created by me.
View
@@ -0,0 +1,19 @@
+InvaderR
+========
+
+Simple space invaders for iOS.
+
+Available on the Apple app store: [free](itunes.apple.com/au/app/invaderr/id366183161?mt=8 "itunes")
+
+### Details
+
+* Controls are tilt left and right in landscape mode, tap anywhere to shoot.
+* The invaders are generated by making a random 3x5 array of 'pixels' and mirroring them.
+* Based on my [Windows version](http://sourceforge.net/projects/invaderr/ "sourceforge") built in C++.
+* I haven't used very much Objective-C, just for setting up and controls.
+
+### Notes
+
+* I have removed references to [pebblecube](http://pebblecube.com "pebblecube.com"), game center and twitter.
+* I have also taken out music and images not created by me.
+* There is a class called AccelerometerSimulation by Otto Chrons for testing the game with your macbook's accelerometer on the iOS simulator.

0 comments on commit d6279ab

Please sign in to comment.