This project is read-only.

Game not initializing

Nov 23, 2010 at 12:47 PM

Hi,

I have a problem with my newly converted XNA game. I have used exactly the same method as the snake sample but the game just simply wont initialise. It doesn't even step into the Game1()  event. Is there a reason for this?

I did notice that Page.InitializeComponent() in the snake example has this:

this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
this.game = ((Doodle_Jump_PC.FarseerPhysicsGame)(this.FindName("game")));
Yet mine doesn't? I haven't seen any extra code or anything else that's different. When I add this code manually to the Page() even it still doesn't change anything.

Anyone got a suggestion as to why it doesn't load the game?

 

Thanks in advance!