Skip to content

Commit 87606b5

Browse files
committed
Bump version to 0.4
1 parent e4ef75b commit 87606b5

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,24 +28,24 @@ Prerequisites:
2828

2929
```sh
3030
# Download image
31-
docker pull codegameproject/hoverrace:0.3
31+
docker pull codegameproject/hoverrace:0.4
3232

3333
# 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
3535
```
3636

3737
## Event Flow
3838

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.
4141
3. The `checkpoints` event contains all checkpoints and the finish line position.
4242
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.
4646
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.
4949

5050
## Building
5151

@@ -60,7 +60,7 @@ codegame build
6060
```
6161
## License
6262

63-
Copyright (C) 2022 Julian Hofmann
63+
Copyright (C) 2022-2023 Julian Hofmann
6464

6565
This program is free software: you can redistribute it and/or modify
6666
it under the terms of the GNU Affero General Public License as published

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func main() {
3131
server := cg.NewServer("hoverrace", cg.ServerConfig{
3232
DisplayName: "Hover Race",
3333
Description: "Race against other hovercrafts from checkpoint to checkpoint.",
34-
Version: "0.3",
34+
Version: "0.4",
3535
RepositoryURL: "https://github.com/code-game-project/hoverrace",
3636
WebsocketTimeout: 1 * time.Minute,
3737
MaxPlayersPerGame: 10,

0 commit comments

Comments
 (0)