public Ai(TennisPong parent) { this.Parent = parent; this.PositionTextureRaquette = new Rectangle(64, 0, 64, 128); this.OrigineRaquette = new Vector2(this.PositionTextureRaquette.Width / 2f, this.PositionTextureRaquette.Height / 2f); }
/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { using (TennisPong game = new TennisPong()) { game.Run(); } }
public Balle(TennisPong parent) { this.Parent = parent; this.PositionTextureBalle = new Rectangle(128, 0, 64, 64); this.ScaleBalle = 0.5f; this.OrigineBalle = new Vector2(this.PositionTextureBalle.Width / 2f, this.PositionTextureBalle.Height / 2f); this.AllerBalle = true; this.OnPointEnded += new PointEndedEventHandler(this.Pong_OnPointEnded); this.OnGameEnded += new GameEndedEventHandler(this.Pong_OnGameEnded); this.OnSetEnded += new SetEndedEventHandler(this.Pong_OnSetEnded); this.onMatchEnded += new MatchEndedEventHandler(Pong_onMatchEnded); }