Ejemplo n.º 1
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="game">The Game object</param>
 /// <param name="textureName">Texture Name</param>
 /// <param name="targetRectangle">Position of the component on the screen</param>
 /// <param name="initialValue">Initial value</param>
 public Button(SpaceMateGame game, string textureName, Rectangle targetRectangle, int initialValue)
     : base(game, targetRectangle)
 {
     asset = textureName;
     value = initialValue;
 }
Ejemplo n.º 2
0
        public void StartGame()
        {
            var game = new SpaceMateGame(isHost, sessionUUID, serverIpAddress, serverPort);

            game.Run();
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="game">The Game oject</param>
 /// <param name="targetRectangle">Position of the component on the screen</param>
 public Clickable(SpaceMateGame game, Rectangle targetRectangle)
     : base(game)
 {
     rectangle = targetRectangle;
 }