RedDot is a simple online game. You should collect more red dots than your friends.
Communication between client and server is implemented by sending json via tcp.
- Server - C# console app
- Client - Unity3d
- Nickname input field. The nickname will be displayed in scoreboard
- Field for server's ip address
- Connect to server button. If server is not responding an error will be displayed
- List of players, connected to server
- Button to decrease match duration by one second
- Match duration
- Button to increase match duration by one second
- Button to decrease number of matches
- Number of matches
- Button to increase number of matches
- Disconnect button. Disconnects from the server
- Play button. Starts game
- Scoreboard
- Time left to end of the match
- Number of matches remaining
- Game field
- Scoreboard
- OK button. Returns player to
Connect to server screen
Communication between client and server is implemented by sending json via tcp.
class Command
{
public string Action { get; set; }
public object Payload { get; set; }
}
Command | Payload type | Description |
---|---|---|
RefreshRoomMembers | string | Updates list of room members |
UpdateMatchesCount | int | Updates number of matches |
UpdateMatchTime | int | Updates duration of the match |
OpenGame | void | Starts the game |
UpdateScoreboard | string | Updates scoreboard |
UpdateBoard | Dot[] as json | Updates game field |
UpdateTimerCountdown | int | Updates countdown timer |
UpdateGameCountdown | int | Updates game countdown counter |
Gameover | void | Terminates the game |
Command | Payload type | Description |
---|---|---|
IncrementMatches | int | Requests server to increase number of matches. Payload can be negative |
IncrementMatchTime | int | Requests server to increase duration of match. Payload can be negative |
StartGame | void | Requests server to start the game |
TouchDot | long | Informs server that dot has been touched by a player. Id sends by payload |
Register | string | Adds player to session. Nickname sends by payload |
Disconnect | void | Informs server that client will be disconnected |