示例#1
0
文件: Level.cs 项目: dale-z/curveball
        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();
        }
示例#2
0
        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;
        }
示例#3
0
文件: Menu.cs 项目: dale-z/curveball
 public Menu(Tutorial16_Phone container)
 {
     _container = container;
 }