예제 #1
0
 public void LoadTiles(string dir)
 {
     string[] files = Directory.GetFiles(dir, "*.png");
     m_tiles = new Bitmap[files.Length];
     for (int j = 0; j < m_tiles.Length; j++)
     {
         m_tiles[j] = new Bitmap(files[j]);
     }
     m_gc            = new GemsCore(m_tiles.Length, 18, 18);
     m_gc.SwapStart += new GemsCore.DManageTiles(m_gc_SwapStart);
     m_gc.SwapEnd   += new GemsCore.DManageTiles(m_gc_SwapEnd);
     m_gc.GameOver  += new EventHandler(m_gc_GameOver);
     m_gc.FallStart += new GemsCore.DTileAnimations(m_gc_FallStart);
 }
예제 #2
0
 public void LoadTiles(string dir)
 {
     string[] files = Directory.GetFiles(dir, "*.png");
     m_tiles = new Bitmap[files.Length];
     for (int j = 0; j < m_tiles.Length; j++)
         m_tiles[j] = new Bitmap(files[j]);
     m_gc = new GemsCore(m_tiles.Length, 18,18);
     m_gc.SwapStart += new GemsCore.DManageTiles(m_gc_SwapStart);
     m_gc.SwapEnd += new GemsCore.DManageTiles(m_gc_SwapEnd);
     m_gc.GameOver += new EventHandler(m_gc_GameOver);
     m_gc.FallStart += new GemsCore.DTileAnimations(m_gc_FallStart);
 }