public GamePage(string launchArguments) { this.InitializeComponent(); // Create the game. _game = XamlGame <AccelerometerGame> .Create(launchArguments, Window.Current.CoreWindow, this); }
//------------------------------------------------------------------------------------- // Class constructors internal BallObject(AccelerometerGame game, Vector2 position, Texture2D texture) : base(game, position, texture) { // Store a strongly typed reference to the game _game = game; // Set the origin to the middle of the sprite Origin = new Vector2(SpriteTexture.Width, SpriteTexture.Height) / 2; }