Пример #1
0
 static void Main()
 {
     using (var game = new Dodge())
         game.Run();
 }
Пример #2
0
 public PlayerOne(Dodge game) : base(game, "blue_square", new Vector2((game.GraphicsDevice.Viewport.Bounds.Width / 2) - 32, game.GraphicsDevice.Viewport.Bounds.Height - 64))
 {
 }
Пример #3
0
 public Ball(Dodge game, Vector2 starting_point) : base(game, "red_circle", starting_point)
 {
 }
Пример #4
0
 public GameObject(Dodge game, string content, Vector2 starting_point)
 {
     this.game = game;
     texture   = game.Content.Load <Texture2D>(content);
     vector    = starting_point;
 }