You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,24 +28,24 @@ Prerequisites:
28
28
29
29
```sh
30
30
# Download image
31
-
docker pull codegameproject/hoverrace:0.3
31
+
docker pull codegameproject/hoverrace:0.4
32
32
33
33
# Run container
34
-
docker run -d --restart on-failure -p <port-on-host-machine>:8080 --name hoverrace codegameproject/hoverrace:0.3
34
+
docker run -d --restart on-failure -p <port-on-host-machine>:8080 --name hoverrace codegameproject/hoverrace:0.4
35
35
```
36
36
37
37
## Event Flow
38
38
39
-
1. Send a`ready`event to the server when you think the game should begin.
40
-
2. The `ready_players` event updates all players on the readiness of all players.
39
+
1. Send the`ready`command to the server when you think the game should begin.
40
+
2. The `ready_players` event updates every player on the readiness of all players.
41
41
3. The `checkpoints` event contains all checkpoints and the finish line position.
42
42
4. The `countdown` event counts down 5 seconds.
43
-
5. The `start` event is sent to all players when the race begins.
44
-
6. Send a `throttle` event to begin moving.
45
-
7. The `hovercrafts` event is sent repeatedly to all players to update them on the state of all hovercrafts.
43
+
5. The `start` event is sent to every player when the race begins.
44
+
6. Send the `control` command to set the target thrust and angle of your hovercraft.
45
+
7. The `hovercrafts` event is sent repeatedly to every player to update them on the state of all hovercrafts.
46
46
8. The `checkpoints` event is sent again when you cross a checkpoint.
47
-
9. The `finished_players` event is sent to all players when a player crosses the finish line. It contains all of the players that have finished the race. The game keeps going until all players have finished.
48
-
10. Send a`ready` event if you want to play again.
47
+
9. The `finished_players` event is sent to all players when a player crosses the finish line. It contains all of the players that have finished the race. The game keeps going until all players have finished or the optional time limit is reached.
48
+
10. Send the`ready` event if you want to play again.
49
49
50
50
## Building
51
51
@@ -60,7 +60,7 @@ codegame build
60
60
```
61
61
## License
62
62
63
-
Copyright (C) 2022 Julian Hofmann
63
+
Copyright (C) 2022-2023 Julian Hofmann
64
64
65
65
This program is free software: you can redistribute it and/or modify
66
66
it under the terms of the GNU Affero General Public License as published
0 commit comments