Пример #1
0
 public APlay(CoordHelper.EProfile profile)
     : base()
 {
     CoordHelper.Instance.setProfile(profile);
     hud = new HUD();
     control = new PlayerControl(this);
     player1 = new GameSession(CoordHelper.EProfile.ONEPLAYER, hud);
     ipt = null;
     if (App.UserInput is TouchInput)
         ipt = App.UserInput as TouchInput;
     else
         (App.UserInput as KeyboardInput).KeyRepeatTime = new TimeSpan(1500000);
 }
Пример #2
0
 public TwoPlayer()
     : base(CoordHelper.EProfile.TWOPLAYER)
 {
     player2 = new GameSession(CoordHelper.EProfile.TWOPLAYER, hud);
     timer = TimeSpan.FromMilliseconds(120000);
 }