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