Example #1
0
        public void Join(string username, int width,int height, bool isPaddle)
        {
            if (Game == null || Game.View.Status == GameStatus.Finished)
            {
                Game = new Game();
            }

            Game.Join(Context.ConnectionId, username, isPaddle, width, height);
        }
 public static void StartGame()
 {
     var game = new Game();
     Games.Add(game);
 }