コード例 #1
0
        protected override void Initialize()
        {
            graphics.PreferredBackBufferWidth = WindowWidth;
            graphics.PreferredBackBufferHeight = WindowHeight;
            graphics.ApplyChanges();

            gameState = State.Playing;

            p1 = new Platform(new Vector2(100, 250), new Vector2(72, 21));
            ground = new Platform(new Vector2(0, WindowHeight - 2), new Vector2(WindowWidth, 3));

            player = new Player(new Vector2(100, WindowHeight - 97), gameBoundingBox);

            base.Initialize();

            player.Initialize();
        }