コード例 #1
0
ファイル: HudComponent.cs プロジェクト: TheSavior/GameStarter
        public HudComponent(ActionScreen screen)
        {
            this.screen = screen;

            drawRectangle = new RectangleF(
                0,
                0,
                Game.Window.ClientBounds.Width,
                Game.Window.ClientBounds.Height);
        }
コード例 #2
0
        public ScreenManager()
        {
            startScreen = new StartScreen();
            actionScreen = new ActionScreen();

            screens = new List<ScreenBase>();
            screens.Add(startScreen);
            screens.Add(actionScreen);

            //activeScreen = startScreen;
            activeScreen = actionScreen;
        }