Example #1
0
 private void InitializeGame()
 {
     SceneService.InitializeCamera();
     IsPlayerInputAllowed = true;
     TileGridService.PopulateTilesGrid();
     GamePieceGridService.FillEmptyGamePieceGridSlots(10, 0.5f); // they are all empty in the beginning
 }
Example #2
0
 /// <summary>
 /// Initialize the tile with the given values.  (x,y) represent its location
 /// </summary>
 /// <param name="x">(x,y) represent its location in the tiles grid</param>
 /// <param name="y">(x,y) represent its location in the tiles grid</param>
 /// <param name="board">A reference to the parent game board</param>
 public virtual void Initialize(int x, int y, TileGridService tileGridService)
 {
     if (tileGridService == null)
     {
         throw new System.ArgumentException("Invalid tileGridService; it cannot be null!");
     }
     this.x = x;
     this.y = y;
     this.tileGridService = tileGridService;
 }
Example #3
0
 public override void Initialize(int x, int y, TileGridService tileGridService)
 {
     base.Initialize(x, y, tileGridService);
     RenderBreakingSprite();
 }