Exemplo n.º 1
0
 static void Main()
 {
     using (var game = new Dodge())
         game.Run();
 }
Exemplo n.º 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))
 {
 }
Exemplo n.º 3
0
 public Ball(Dodge game, Vector2 starting_point) : base(game, "red_circle", starting_point)
 {
 }
Exemplo n.º 4
0
 public GameObject(Dodge game, string content, Vector2 starting_point)
 {
     this.game = game;
     texture   = game.Content.Load <Texture2D>(content);
     vector    = starting_point;
 }