public Gaming(String name, Game1 parent, ref GraphicsDeviceManager graphics, ref SpriteBatch spriteBatch, ref GraphicsDevice device) : base() { this.name = name; this.parentGame = parent; this.graphics = graphics; this.spriteBatch = spriteBatch; this.device = device; LoadContent(); }
/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { System.Threading.Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.CreateSpecificCulture("en-US"); using (Game1 game = new Game1()) { game.Run(); } }
public Loss(Game1 parent, ref GraphicsDeviceManager graphics, ref SpriteBatch spriteBatch, ref GraphicsDevice device) : base() { this.parentGame = parent; this.graphics = graphics; this.spriteBatch = spriteBatch; this.device = device; ButtonsInit(); Initialize(); LoadContent(); }