Ejemplo n.º 1
0
        private int Run()
        {
            var levensloop = new Engine.Game();

            var label = new Label(levensloop.UIContext, "Text", "Arial", 15);


            levensloop.Registery.Register(new WriteToConsoleSystem());
            levensloop.EntityLoader.LoadLevel(File.ReadAllText("Level1.json"));

            //levensloop.EntityLoader.LoadJson(File.ReadAllText("camera.json"));
            //levensloop.EntityLoader.LoadJson(File.ReadAllText("square.json"));
            //levensloop.EntityLoader.LoadJson(File.ReadAllText("triangle.json"));

            levensloop.Run();

            return(0);
        }
Ejemplo n.º 2
0
 static void Main()
 {
     // Runs the DesktopGL implementation using DirectX Dlls (Sorry!)
     using (var game = new Engine.Game())
         game.Run();
 }