Load and Start implemented.
This commit is contained in:
@@ -76,16 +76,16 @@ public class GameMenu extends GameStateInterface
|
||||
|
||||
switch(GameState)
|
||||
{
|
||||
case GS_LOAD:
|
||||
/*case GS_LOAD:
|
||||
{
|
||||
Load();
|
||||
break;
|
||||
}
|
||||
case GS_READY:
|
||||
}*/
|
||||
/*case GS_READY:
|
||||
{
|
||||
canvasView.postInvalidate();
|
||||
break;
|
||||
}
|
||||
}*/
|
||||
case GS_PAUSED:
|
||||
{
|
||||
canvasView.postInvalidate();
|
||||
@@ -126,11 +126,10 @@ public class GameMenu extends GameStateInterface
|
||||
// Audio.
|
||||
MediaPlayer mp;
|
||||
|
||||
// Load
|
||||
private void Load()
|
||||
// TODO game state
|
||||
@Override
|
||||
public void Load()
|
||||
{
|
||||
SetGameState(GS_LOADING, false);
|
||||
|
||||
// Load Bitmap's.
|
||||
//LoadSprites();
|
||||
|
||||
@@ -140,8 +139,13 @@ public class GameMenu extends GameStateInterface
|
||||
|
||||
// Audio
|
||||
mp = MediaPlayer.create(activity, R.raw.tetris_a);
|
||||
}
|
||||
|
||||
SetGameState(GS_MENU_READY, false);
|
||||
@Override
|
||||
public void Start()
|
||||
{
|
||||
GameState = GS_MENU_READY;
|
||||
canvasView.postInvalidate();
|
||||
}
|
||||
|
||||
// Draw functions.
|
||||
|
||||
Reference in New Issue
Block a user