Holds a specific image related to the background.


  • TileLayer : Created, Updated, and Rendered in


  • Texture2D texture - texture of the Tile
  • Rectangle texBounds - the texture bounds of the texture. Used to get it's width
  • Vector2 position - the current position of the texture on the screen
  • bool isBlankTile - if the tile is being drawn or not.


  • Tile(Texture2D texture, Vector2 startingPosition, bool _isBlankTile)
    • Assigns a texture to the tile, assigns original position to Tile, tells the Tile if it will be drawn or not.
  • Draw(SpriteBatch spriteBatch)
    • draws the texture
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License