I'm making a project to Windows Phone using Silverlight + XNA, but I don't know how I can use the DrawableGameComponent
because the constructor requires a Game
class, it looks like this:
Planet.cs
class Planet : DrawableGameComponent
{
public Planet(Game game): base(game){
{
}
but in my first page of Silverlight and XNA project not is a Game
class it's this:
GamePage.xaml.cs
public partial class GamePage : PhoneApplicationPage
{
...
}
Where do I find the Game
class to pass into the DrawableGameComponent
constructor?