Example #1
0
 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();
 }
Example #2
0
        /// <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();
            }
        }
Example #3
0
 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();
 }