예제 #1
0
        static void Main(string[] args)
        {
            Raylib.InitWindow(width, height, "Monke");

            string fileName = @"Data.json";

            System.Console.WriteLine(File.Exists(fileName));

            string contents = File.ReadAllText(fileName);

            JsonConvert.DeserializeObject <SceneWrapper>(contents);
            SceneWrapper.Init();

            string           characterFile    = @"Characters.json";
            string           characterContent = File.ReadAllText(characterFile);
            CharacterWrapper cw = JsonConvert.DeserializeObject <CharacterWrapper>(characterContent);


            int x = 0;

            SceneWrapper.scenes[x].Draw();


            while (!Raylib.WindowShouldClose())
            {
                Raylib.BeginDrawing();

                SceneWrapper.DrawScene();

                Raylib.EndDrawing();
            }
        }
예제 #2
0
 private static void ChangeSceneDelegate(string action)
 {
     SceneWrapper.ChangeScene(action);
 }