using System; using System.Collections.Generic; using System.Linq; using System.Text; using VBXSE; namespace TalkingIsAFreeAction { public class Tile : PhysicsObject { public const int TILE_SIZE_X = 24; public const int TILE_SIZE_Y = 24; public Sprite sprite; public bool solid = false; public Tile(bool solid, int x, int y, string texture = "") { this.solid = solid; if (texture == "") { if (solid) this.sprite = SpriteEngine.CreateSprite("tile"); else this.sprite = SpriteEngine.CreateSprite("notile"); } else this.sprite = SpriteEngine.CreateSprite(texture); this.sprite.depth = 50; this.x = x * TILE_SIZE_X; this.y = y * TILE_SIZE_Y; this.sprite.SetPosition(this.x, this.y); } } }