Exemple #1
0
 public GameButton(SpriteManager.ESprite s, Vector2 pos, PlayerControl.HandlerAction act)
     : base(App.Game)
 {
     btnState = ButtonState.Released;
     handler = act;
     type = s;
     coord = new Rectangle((int)pos.X, (int)pos.Y, (int)Constants.Measures.buttonSize, (int)Constants.Measures.buttonSize);
 }
Exemple #2
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);
 }