예제 #1
0
 public Level(CDrawer cdr, CLogger clg, List <Obj> terrain)
 {
     this.cdr  = cdr;
     this.clg  = clg;
     this.objs = terrain;
     foreach (Obj o in objs)
     {
         cdr.objects.Add(o as CDrawable);
     }
 }
예제 #2
0
        static void Main(string[] args)
        {
            int     size = 20;
            CLogger clg  = new CLogger(size, size);
            CDrawer cdr  = new CDrawer(size, size);

            clg.AddOffset(size + 6, 0);

            Level.FormateWindow();

            Level l = new Level(cdr, clg, TerrainGenerator.testLevelTerrain());

            l.Paint();
            for (; ;)
            {
                l.Step();
                l.Repaint();
            }
        }