Commit 0b041845 authored by Rominho15's avatar Rominho15
Browse files

Version 9.5.1 : difficulté affecte aussi le random

parent 383704df
......@@ -4,6 +4,7 @@ import android.content.Context;
import android.content.Intent;
import android.graphics.Point;
import android.media.MediaPlayer;
import android.util.Log;
import android.view.Display;
import android.view.WindowManager;
......@@ -345,7 +346,7 @@ public class GameController {
public void giveBonus(int x, int y) {
if(gameModel.getBonus() == null) {
Random r = new Random();
int i = r.nextInt(26);
int i = r.nextInt(9*difficulty);
if (i == 0) {
int s = 2;
// Si multijoueur
......
......@@ -25,7 +25,7 @@ public class BetweenLevelActivity extends AppCompatActivity {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_between_level);
mp = MediaPlayer.create(this, R.raw.lp);
mp = MediaPlayer.create(this, R.raw.betweenl);
mp.start();
// Récupération des paramètres
......
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