コード例 #1
0
 public static void Main(string[] args)
 {
     using (var game = new FlyGame())
     {
         game.Run();
     }
 }
コード例 #2
0
ファイル: GameGraphics.cs プロジェクト: tivtag/Fly
        public GameGraphics(FlyGame game)
        {
            this.game     = game;
            this.graphics = new Xna.GraphicsDeviceManager(game);
            this.graphics.IsFullScreen             = false;
            this.graphics.PreparingDeviceSettings += this.OnPreparingDeviceSettings;
            this.graphics.GraphicsProfile          = GraphicsProfile.HiDef;

            this.fontLoader = new FontLoader(this.game.Services)
            {
                RootDirectory = "Content/Fonts/"
            };
        }
コード例 #3
0
ファイル: EditorState.cs プロジェクト: tivtag/Fly
 public EditorState(FlyGame game)
 {
     this.rand     = game.Rand;
     this.graphics = game.Graphics;
     this.game     = game;
 }