Commit 03ae645f authored by Rominho15's avatar Rominho15
Browse files

Version 9.5.2 : correction de bugs mineurs

parent 0b041845
......@@ -8,7 +8,7 @@ import com.example.rleger.cassebrique.R;
import com.example.rleger.cassebrique.View.GameView;
public class GameActivity extends AppCompatActivity {
private GameController gameController;
/**
* Création de l'activité de jeu
* @param savedInstanceState
......@@ -46,10 +46,16 @@ public class GameActivity extends AppCompatActivity {
public void initGame(int niveau, int methode, int score, int player, int difficulty){
// Création du contrôleur
GameView gameView = (GameView)findViewById(R.id.gameview);
GameController gameController = new GameController(gameView,this.getApplicationContext(),niveau,score,player,difficulty);
gameController = new GameController(gameView,this.getApplicationContext(),niveau,score,player,difficulty);
// Début de partie
gameController.startGame();
gameView.setMethode(methode);
}
@Override
protected void onStop() {
super.onStop();
gameController.getGameThread().toStop();
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment