Exemplo n.º 1
0
        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;
        }
Exemplo n.º 2
0
 public Mouse(GameAPI.Point p)
     : base(p)
 {
     this.SetIcon = @"..\..\Mouse.png";
 }
Exemplo n.º 3
0
 public Snake(GameAPI.Point p)
     : base(p)
 {
     this.SetIcon = @"..\..\SnakeHead.png";
 }
Exemplo n.º 4
0
 public SnakeBody(GameAPI.Point p)
     : base(p)
 {
     this.SetIcon = @"..\..\SnakeBody.png";
 }
Exemplo n.º 5
0
 public Wall(GameAPI.Point p)
     : base(p)
 {
     this.SetIcon = @"..\..\wall.png";
 }