Ejemplo n.º 1
0
 public void mouseOver(Iso Iso)
 {
     for (var l = 0; l < myIsoList.Count; l++)
     {
         myIsoList[l].Glow = false;
         if (myIsoList[l] == Iso) myIsoList[l].Glow = true;
     }
 }
Ejemplo n.º 2
0
        private void init()
        {
            myIsoList = new List<Iso>();

            myIsoGrid = new Iso[boardWidth][];

            for (var x = 0; x < boardWidth; x++)
            {
                myIsoGrid[x] = new Iso[boardHeight];
            }

            for (var y = 0; y < boardHeight; y++)
            {
                for (var x = 0; x < boardWidth; x++)
                {
                    Block.buildBottomEmpty(myCanvas.Context, x, y);
                }
            }

            for (var y = 0; y < boardHeight; y++)
            {
                for (var x = 0; x < boardWidth; x++)
                {

                    var tri = new Iso(x, y, Help.GetRandomColor(), myCanvas.Context);

                    myIsoGrid[x][y] = tri;

                    myIsoList.Add(tri);
                }
            }
            Window.ScrollTo(0,0);
        }
Ejemplo n.º 3
0
        public void mouseDown(Pointer pointer, Iso Iso)
        {
            Iso selected = null;

            if (!pointer.Right)
            {
             }
            else
            {

            }
        }