Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LEGER ROMAIN
CasseBrique
Commits
0b041845
Commit
0b041845
authored
Jan 28, 2016
by
Rominho15
Browse files
Version 9.5.1 : difficulté affecte aussi le random
parent
383704df
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/com/example/rleger/cassebrique/Controller/GameController.java
View file @
0b041845
...
...
@@ -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
...
...
app/src/main/java/com/example/rleger/cassebrique/Screen/BetweenLevelActivity.java
View file @
0b041845
...
...
@@ -25,7 +25,7 @@ public class BetweenLevelActivity extends AppCompatActivity {
super
.
onCreate
(
savedInstanceState
);
setContentView
(
R
.
layout
.
activity_between_level
);
mp
=
MediaPlayer
.
create
(
this
,
R
.
raw
.
l
p
);
mp
=
MediaPlayer
.
create
(
this
,
R
.
raw
.
between
l
);
mp
.
start
();
// Récupération des paramètres
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment