Skip to content

RedDot is a simple online game. You should collect more red dots than your friends.

Notifications You must be signed in to change notification settings

valerachuk/RedDotTheGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RedDotTheGame

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.

Table of contents

Demo

Watch the video

Technologies

  • Server - C# console app
  • Client - Unity3d

User interface

Connect to server screen

Connect to server screen

  1. Nickname input field. The nickname will be displayed in scoreboard
  2. Field for server's ip address
  3. Connect to server button. If server is not responding an error will be displayed

Game lobby screen

Game lobby screen

  1. List of players, connected to server
  2. Button to decrease match duration by one second
  3. Match duration
  4. Button to increase match duration by one second
  5. Button to decrease number of matches
  6. Number of matches
  7. Button to increase number of matches
  8. Disconnect button. Disconnects from the server
  9. Play button. Starts game

Game screen

Game screen

  1. Scoreboard
  2. Time left to end of the match
  3. Number of matches remaining
  4. Game field

Game over screen

Game over screen

  1. Scoreboard
  2. OK button. Returns player to Connect to server screen

Commands description

Communication between client and server is implemented by sending json via tcp.

  class Command
  {
    public string Action { get; set; }
    public object Payload { get; set; }
  }

Commands that server sends to client

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

Commands that client sends to server

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

About

RedDot is a simple online game. You should collect more red dots than your friends.

Topics

Resources

Stars

Watchers

Forks

Languages