Exemplo n.º 1
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (EvilBabies game = new EvilBabies())
     {
         game.Run();
     }
 }
Exemplo n.º 2
0
 /* Constructor, wordt aangeroepen om een nieuw object(instantie van de class) te maken
  */
 public AnimatedSprite(ContentManager content, int x, int y, Keys leftKey, Keys rightKey, 
                         Enemy enemy, EvilBabies game)
 {
     this.texture = content.Load<Texture2D>(@"pictures\gb_walk");
     this.destinationRect = new Rectangle(x, y, 104, 150);
     this.sourceRect = new Rectangle(0, 302, 104, 150);
     this.leftKey = leftKey;
     this.rightKey = rightKey;
     this.content = content;
     this.position = new Vector2(x, y);
     this.fireballList = new List<Fireball>();
     this.demonList = enemy.DemonList;
     this.game = game;
 }