public static void Main(string[] args) { using (var game = new FlyGame()) { game.Run(); } }
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/" }; }
public EditorState(FlyGame game) { this.rand = game.Rand; this.graphics = game.Graphics; this.game = game; }