コード例 #1
0
ファイル: SnakeTail.cs プロジェクト: RRH-HUB/Snake
        public void mover(int x, int y)
        {
            if (next != null)
            {
                next.mover(this.x, this.y);
            }

            this.x = x;
            this.y = y;
        }
コード例 #2
0
ファイル: Form1.cs プロジェクト: RRH-HUB/Snake
 public void movimientos()
 {
     head.mover(head.getx() + direcx, head.gety() + direcy);
 }