Exemple #1
0
    public void OnNewAnimation()
    {
        var newScene = NewScene.GetInstance(_core);

        newScene.OKClick = ClearAnimation;
        _core.Scenes.Push(newScene);
    }
Exemple #2
0
        public IHttpActionResult UpdateGameScene(int eventChoiceId, int route)
        {
            //will need to think about where to save player character, possibly pass in player id
            var         currentEventChoice = gameService.FindEventChoiceById(eventChoiceId);
            EventChoice NextEventChoice    = null;

            if (currentEventChoice.PositiveRoute > 0 && currentEventChoice.NegativeRoute > 0)
            {
                if (currentEventChoice.PositiveRoute > 0)
                {
                    NextEventChoice = gameService.FindEventChoiceById(route);
                }
                if (currentEventChoice.NegativeRoute > 0)
                {
                    NextEventChoice = gameService.FindEventChoiceById(route);
                }
            }

            if (currentEventChoice.PositiveSceneRoute == route || currentEventChoice.NegativeSceneRoute == route)
            {
                var newScene = new NewScene();
                newScene.Scene = gameService.FindSceneById(currentEventChoice.SceneId + 1);
                //newScene.EventChoice = gameService.FindEventChoiceById(newScene.Scene.);
            }
            return(Ok(NextEventChoice));
        }
Exemple #3
0
        private void btn_add_scene_Click(object sender, EventArgs e)
        {
            NewScene newScene = new NewScene();

            newScene.ProjectPath = ProjectPath;
            newScene.ShowDialog();
            InitTheInterface();
            RefeshAllTabs();
        }
Exemple #4
0
        protected override void Initialize()
        {
            base.Initialize();

            var foo = YamlSerializer.Deserialize <TileSheet>(Shared.Content.Data.Tileset_subtiles_test_atlas);

            Window.AllowUserResizing = true;
            Window.Title             = "New Game";
            //Core.debugRenderEnabled = true;
            DebugConsole.ConsoleKey  = Keys.F2;
            DebugConsole.RenderScale = 3;
            Screen.SetSize(800, 600);

            Scene = new NewScene();
        }