//creates an Entity with the specitfied icon and image public Entity(char icon, string imageName) : this(icon) { Sprite = new SpriteEntity(); Sprite.Load(imageName); AddChild(Sprite); Hitbox = new AABB( new Vector3(XAbsolute - 0.5f, YAbsolute - 0.5f, 1), new Vector3(XAbsolute + 0.5f, YAbsolute + 0.5f, 1)); }
//Creates an Entity with the specified icon and image public Entity(char icon, string imageName) : this(icon) { Sprite = new SpriteEntity(); Sprite.Load(imageName); AddChild(Sprite); }