Fix2
This commit is contained in:
parent
0d7397b322
commit
41866d9c5f
@ -33,7 +33,7 @@ public class FormMap extends JFrame {
|
||||
rnd.nextInt(100, 300),
|
||||
rnd.nextInt(1000, 2000),
|
||||
new Color(rnd.nextInt(256), rnd.nextInt(256), rnd.nextInt(256)),
|
||||
rnd.nextInt(4, 6 + 1)
|
||||
rnd.nextInt(1, 4)
|
||||
);
|
||||
setData(ship);
|
||||
});
|
||||
@ -71,7 +71,7 @@ public class FormMap extends JFrame {
|
||||
rnd.nextInt(100, 300),
|
||||
rnd.nextInt(1000, 2000),
|
||||
new Color(rnd.nextInt(256), rnd.nextInt(256), rnd.nextInt(256)),
|
||||
rnd.nextInt(4, 6 + 1),
|
||||
rnd.nextInt(1, 4),
|
||||
new Color(rnd.nextInt(256), rnd.nextInt(256), rnd.nextInt(256)),
|
||||
rnd.nextBoolean(),
|
||||
rnd.nextBoolean()
|
||||
|
@ -31,7 +31,7 @@ public class FormShip extends JFrame {
|
||||
rnd.nextInt(0, 256),
|
||||
rnd.nextInt(0, 256),
|
||||
rnd.nextInt(0, 256)),
|
||||
rnd.nextInt(4, 7)
|
||||
rnd.nextInt(1, 4)
|
||||
);
|
||||
_ship.SetPosition(10 + rnd.nextInt(90), 10 + rnd.nextInt(90), pictureBox.getWidth(), pictureBox.getHeight());
|
||||
speedLabel.setText(String.format("Speed: %s", _ship.getShip().getSpeed()));
|
||||
@ -71,7 +71,7 @@ public class FormShip extends JFrame {
|
||||
rnd.nextInt(0, 256),
|
||||
rnd.nextInt(0, 256),
|
||||
rnd.nextInt(0, 256)),
|
||||
rnd.nextInt(4, 7),
|
||||
rnd.nextInt(1, 4),
|
||||
new Color(
|
||||
rnd.nextInt(0, 256),
|
||||
rnd.nextInt(0, 256),
|
||||
|
Loading…
x
Reference in New Issue
Block a user