Exemple #1
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (Game1 game = new Game1())
     {
         game.Run();
     }
 }
Exemple #2
0
 public Ball(Game1 game, SpriteBatch spriteBatch, Texture2D texture, Vector2 position, Vector2 screenSize)
     : base(game)
 {
     // TODO: Construct any child components here
     this.game = game;
     this.spriteBatch = spriteBatch;
     this.texture = texture;
     this.position = position;
     this.screenSize = screenSize;
 }
Exemple #3
0
 public Paddle(Game1 game, Vector2 position, Texture2D texture, SpriteBatch spriteBatch, int playerNumber, Vector2 screenSize)
     : base(game)
 {
     // TODO: Construct any child components here
     this.game = game;
     this.position = initialPosition = position;
     this.texture = texture;
     this.spriteBatch = spriteBatch;
     this.screenSize = screenSize;
     player = playerNumber;
 }
 public CollisionManager(Game game)
     : base(game)
 {
     // TODO: Construct any child components here
     this.game = (Game1)game;
 }