예제 #1
0
        public MainWindow()
        {
            InitializeComponent();

            MevoUniverseConfig conf = new MevoUniverseConfig();

            conf.CircleChance    = .5f;
            conf.TriangleChance  = .35f;
            conf.SquareChance    = .15f;
            conf.SpawnRadiusInit = 50;
            conf.InitHeight      = 300;
            conf.InitWidth       = 500;

            MevoUniverse uni = new MevoUniverse();

            uni.Initialize(conf);

            foreach (MevoElement elem in uni.Elements)
            {
                _Viewer.AddElement(MevoUiElement.CreateElement(elem));
            }
        }
예제 #2
0
 public void AddElement(MevoUiElement elem)
 {
     _Cnvs.Children.Add(elem.Element);
 }