Fixed that wind speed did not updated frequently and UI polishing.

- added shadow for raceview boxes
- split up message history and input text block
- changed timer font

#story[1245]
This commit is contained in:
Haoming Yin
2017-09-13 21:11:40 +12:00
parent 47798b19fe
commit 7ee6a09626
7 changed files with 72 additions and 28 deletions
@@ -196,21 +196,21 @@ public class MainServerThread implements Runnable, ClientConnectionDelegate {
if (Math.floorMod(random.nextInt(), 2) == 0){
direction += random.nextInt(4);
windSpeed += random.nextInt(20) + 50;
windSpeed += random.nextInt(20) + 459;
}
else{
direction -= random.nextInt(4);
windSpeed -= random.nextInt(20) + 50;
windSpeed -= random.nextInt(20) + 459;
}
direction = Math.floorMod(direction, 360);
if (windSpeed > MAX_WIND_SPEED){
windSpeed -= random.nextInt(1000);
windSpeed -= random.nextInt(500);
}
if (windSpeed <= MIN_WIND_SPEED){
windSpeed += random.nextInt(1000);
windSpeed += random.nextInt(500);
}
GameState.setWindSpeed(Double.valueOf(windSpeed));