コード例 #1
0
ファイル: Game1.cs プロジェクト: thismarvin/flappy-network
        protected override void Draw(GameTime gameTime)
        {
            GraphicsDevice.Clear(Palette.MidnightBlack);

            switch (GameMode)
            {
            case Mode.Playfield:
                Playfield.Draw(spriteBatch);
                break;
            }

            StaticCamera.Draw(spriteBatch);
            base.Draw(gameTime);
        }
コード例 #2
0
ファイル: GameRoot.cs プロジェクト: thismarvin/monoengine
        protected override void Draw(GameTime gameTime)
        {
            GraphicsDevice.Clear(PICO8.SkyBlue);

            switch (GameMode)
            {
            case Mode.Menu:
                break;

            case Mode.Playfield:
                Playfield.Draw(spriteBatch);
                HUD.Draw(spriteBatch);
                break;
            }

            StaticCamera.Draw(spriteBatch);
            base.Draw(gameTime);
        }