/// <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. //font = Content.Load<SpriteFont>("SpriteFont1"); // TODO: use this.Content to load your game content here spriteSheet = Content.Load <Texture2D>("spritesheet"); debugSquare = Content.Load <Texture2D>("Square"); Dictionary <string, Rectangle[]> textures = Load.Sprites(); ship = new Ship(uiController, spriteSheet, textures["ship"]); phyicsField.addPhysicsBody(ship); Random ran = new Random(); for (int i = 0; i <= 10; i++) { Astroids roid = new Astroids(spriteSheet, textures["planetoid"][0], uiController, 50, 50, Vector2.Zero); roid.pos.X = ran.Next(100, screenWidth - 100); roid.pos.Y = ran.Next(100, screenHeight - 100); phyicsField.addPhysicsBody(roid); roid.update(); } }