Load and Start implemented.

This commit is contained in:
Administrator
2014-02-21 13:14:55 +01:00
parent 1feeb75883
commit 0a1020377b
4 changed files with 40 additions and 20 deletions
+15 -7
View File
@@ -75,16 +75,16 @@ public class GamePlay extends GameStateInterface
switch(GameState)
{
case GS_LOAD:
/*case GS_LOAD:
{
Load();
break;
}
case GS_START:
}*/
/*case GS_START:
{
StartGame();
break;
}
}*/
case GS_RESUME:
{
Resume();
@@ -457,9 +457,11 @@ public class GamePlay extends GameStateInterface
handler.postDelayed(runnable, 100);
}
private void Load()
// TODO game state
@Override
public void Load()
{
SetGameState(GS_LOADING, false);
//SetGameState(GS_LOADING, false);
// Load Bitmap's.
LoadSprites();
@@ -471,7 +473,13 @@ public class GamePlay extends GameStateInterface
// Audio
mp = MediaPlayer.create(activity, R.raw.tetris_a);
SetGameState(GS_READY, false);
//SetGameState(GS_READY, false);
}
@Override
public void Start()
{
StartGame();
}
private void LoadSprites()