Ejemplo n.º 1
0
 /// <summary>
 /// Allows the game to perform any initialization it needs to before starting to run.
 /// This is where it can query for any required services and load any non-graphic
 /// related content.  Calling base.Initialize will enumerate through any components
 /// and initialize them as well.
 /// </summary>
 protected override void Initialize()
 {
     // TODO: Add your initialization logic here
     base.Initialize();
     Arduino.Initialize();
     timer          = new Timer();
     scoreCounter   = new OverallScoreCounter();
     renderTarget   = new RenderTarget2D(this.GraphicsDevice, 3840, 2160);
     soundEffects   = new SoundEffects();
     outerWorks     = new OuterWorks();
     gearCounter    = new GearCounter();
     endgameCounter = new EndgameCounter();
     rpCounter      = new RPCounter();
 }
Ejemplo n.º 2
0
 /// <summary>
 /// LoadContent will be called once per game and is the place to load
 /// all of your content.
 /// </summary>
 protected override void LoadContent()
 {
     // Create a new SpriteBatch, which can be used to draw textures.
     spriteBatch = new SpriteBatch(GraphicsDevice);
     Timer.Load(Content);
     OverallScoreCounter.Load(Content);
     SoundEffects.Load(Content);
     OuterWorks.Load(Content);
     GearCounter.Load(Content);
     EndgameCounter.Load(Content);
     RPCounter.Load(Content);
     titleFont    = Content.Load <SpriteFont>("titlefont");
     bigTitleFont = Content.Load <SpriteFont>("titlefontsuper");
     logo         = Content.Load <Texture2D>("steamhold4");
     background   = Content.Load <Texture2D>("background");
     // TODO: use this.Content to load your game content here
 }