public Level(Tutorial16_Phone container, LevelInfo info) { _container = container; _info = info; _team1 = new List <PlayerAgent>(); _team2 = new List <PlayerAgent>(); _powerups = new List <Powerup>(); _levelRootNode = new TransformNode(); Initialize(); }
public GamePage() { InitializeComponent(); // Get the content manager from the application contentManager = (Application.Current as App).Content; // Create a timer for this page timer = new GameTimer(); timer.UpdateInterval = TimeSpan.FromTicks(333333); timer.Update += OnUpdate; timer.Draw += OnDraw; tutorial16 = new Tutorial16_Phone(); LayoutUpdated += new EventHandler(GamePage_LayoutUpdated); // Disable the auto-sleep mode so that the app will be kept alive even when the // user is not interacting with the device Microsoft.Phone.Shell.PhoneApplicationService.Current.UserIdleDetectionMode = Microsoft.Phone.Shell.IdleDetectionMode.Disabled; }
public Menu(Tutorial16_Phone container) { _container = container; }