/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { using (Game1 game = new Game1()) { game.Run(); } }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); Game1.Activity = this; var game = new Game1(); SetContentView(game.Window); game.Run(); }
// Constructor public GamePage() { InitializeComponent(); _game = XamlGame<Game1>.Create("", XnaSurface); // Sample code to localize the ApplicationBar //BuildLocalizedApplicationBar(); }
public override void FinishedLaunching(MonoMac.Foundation.NSObject notification) { game = new Game1 (); game.Run (); }
private Game1() : base() { rnd = new Random(); graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; myContentUI = Content; instance = this; }
void StartGame(object param) { object[] parameters = (object[])param; Game1 theGame = new Game1(); theGame.signInAs(parameters[0].ToString()); if (parameters[1] != null) { theGame.setSteveIcon(new StreamReader(parameters[1].ToString()).BaseStream); } theGame.Window.Title = "Pong"; theGame.Run(); }
static void Main() { using (var game = new Game1()) game.Run(); }
private static void Main() { using (var game = new Game1()) game.Run(); }