public GameObject(GameAPI.Point p) : base() { this.CurentPosition = p; //this.Source = (ImageSource)(new ImageSourceConverter()).ConvertFromString(@"..\..\wall.png"); this.Height = Size; this.Width = Size; this.VerticalAlignment = System.Windows.VerticalAlignment.Top; this.HorizontalAlignment = System.Windows.HorizontalAlignment.Left; }
public Mouse(GameAPI.Point p) : base(p) { this.SetIcon = @"..\..\Mouse.png"; }
public Snake(GameAPI.Point p) : base(p) { this.SetIcon = @"..\..\SnakeHead.png"; }
public SnakeBody(GameAPI.Point p) : base(p) { this.SetIcon = @"..\..\SnakeBody.png"; }
public Wall(GameAPI.Point p) : base(p) { this.SetIcon = @"..\..\wall.png"; }