コード例 #1
0
ファイル: Program.cs プロジェクト: Andrew1431/AHTWPong
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (Game1 game = new Game1())
     {
         game.Run();
     }
 }
コード例 #2
0
ファイル: Ball.cs プロジェクト: Andrew1431/AHTWPong
 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;
 }
コード例 #3
0
ファイル: Paddle.cs プロジェクト: Andrew1431/AHTWPong
 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;
 }
コード例 #4
0
 public CollisionManager(Game game)
     : base(game)
 {
     // TODO: Construct any child components here
     this.game = (Game1)game;
 }