This is the main type for your game
Inheritance: Microsoft.Xna.Framework.Game
コード例 #1
0
ファイル: Program.cs プロジェクト: martinvium/ngj2012
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (Game1 game = new Game1())
     {
         game.Run();
     }
 }
コード例 #2
0
ファイル: GameInstance.cs プロジェクト: martinvium/ngj2012
        public GameInstance(GraphicsDeviceManager gfx, ContentManager content, Game1 game)
        {
            _graphics = gfx;
            Content = content;
            _game = game;

            BodyFactory.CreateEdge(_world, new Vector2(0, 0) / METER_IN_PIXEL, new Vector2(0, WIDTH) / METER_IN_PIXEL);
            //left
            BodyFactory.CreateEdge(_world, new Vector2(0, 0) / METER_IN_PIXEL, new Vector2(WIDTH, 0) / METER_IN_PIXEL);
            //right
            BodyFactory.CreateEdge(_world, new Vector2(WIDTH, 0) / METER_IN_PIXEL, new Vector2(WIDTH, HEIGHT) / METER_IN_PIXEL);
            //bottom
            BodyFactory.CreateEdge(_world, new Vector2(0, HEIGHT) / METER_IN_PIXEL, new Vector2(WIDTH, HEIGHT) / METER_IN_PIXEL);
            //_graphics.IsFullScreen = true;
            HeadsUpDisplay.HOW_EVIL = 309/2;
        }