예제 #1
0
            public void tick()
            {
                switch(state) {
                    case GameController.State.Loading:
                        rpgBackbuffer = cabedge.NewImage(320, 240);
                        uiController = new UiController();
                        rpgController = new RpgController(cabedge.player1);

                        //rpgController.SwitchMap("raw/dock.map");
                        rpgController.SwitchMap("raw/city01.map");
                        rpgController.CreatePlayer("raw/man4.chr", 7, 15);
                        man = rpgController.CreateEntity("raw/man3.chr", 8, 11);
                        man.bCanHurry = false;
                        man.activationScript = "Test1";
                        cabedge.loading();

                        state = State.InGame;
                        goto case GameController.State.InGame;

                    case State.MainMenu:
                        goto case State.InGame;

                    case State.InGame:
                        rpgController.tick();
                        uiController.tick();
                        /*if(player1.Confirm) {
                            player1.Confirm.unpress();
                            uiController.textOpen();
                        }*/
                        break;
                }
            }