/// <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() { base.Initialize(); CollisionHashMap.Initialize(); this._player = new Player(); this.TargetElapsedTime = TimeSpan.FromSeconds(1.0f / UPDATES_PER_SECOND); ClearActiveObjects(); for (int i = 0; i < 0; i++) { Rock rock = new Rock(new Vector2(MapGen.Randomizer.GetRandomNumber(SCREEN_WIDTH), MapGen.Randomizer.GetRandomNumber(SCREEN_HEIGHT))); rock.EnforceBounds(); AddActiveObject(rock); } AddActiveObject(new Rock(new Vector2(500f, 300f))); }