... reference to the game _game = game; // Set a random position PositionX = GameHelper.RandomNext(0, _game. Window.ClientBounds.Width); PositionY = GameHelper.RandomNext(0, _game. Window.ClientBounds.Height); ... = 5 CHAPTER 3 ■ CREATING A GAME FRAMEWORK 76 Listing 3 17. The constructor for the BallObject class internal BallObject(MultipleObjectsGame game, Texture2D texture) : base (game, Vector2.Zero, ... when the game is running; its code is shown in Listing 3 21. Listing 3 21. Resetting the game private void ResetGame() { TextObject message; // Remove any existing objects GameObjects.Clear();...