public void Update(Vector2 camPosition)
        {
            foreach (SpriteSheet sheet in SpriteSheets)
            {
                sheet.Update(camPosition);
            }

            //TODO: Remove the hardcoded spriteSheet selected. Udating the code to actually use sprite sheet graphics
            active = SpriteSheets[0];
        }
Beispiel #2
0
 internal void SetTile(SpriteSheet spriteSheet)
 {
     if (spriteSheet != null)
     {
         connectedSheet = spriteSheet;
         this.SelectedTile = connectedSheet.SelectedTile();
         this.type = SelectedTile.GetTileType();
     }
 }
Beispiel #3
0
 public void Reset()
 {
     this.type = TileType.Default;
     this.connectedSheet = null;
     this.SelectedTile = null;
 }