Exemplo n.º 1
0
 //Constructor
 public Beetle(PyramidPanic game, Vector2 position)
 {
     this.game = game;
     this.position = position;
     this.texture = game.Content.Load<Texture2D>(@"Beetle\Beetle");
     this.walkUp = new WalkUp(this);
     this.walkDown = new WalkDown(this);
     this.state = this.walkUp;
 }
Exemplo n.º 2
0
 // Maak de constructor
 public Beetle(PyramidPanic game, Vector2 position, int speed)
 {
     this.position = position;
     this.game = game;
     this.speed = speed;
     this.texture = this.game.Content.Load<Texture2D>(@"PlayScene\Beetle");
     this.walkDown = new WalkDown(this);
     this.walkUp = new WalkUp(this);
     this.state = this.walkDown;
 }
Exemplo n.º 3
0
 //constructor
 public Beetle(PyramidPanic game, Vector2 position, float speed)
 {
     this.game = game;
     this.position = position;
     this.texture = game.Content.Load<Texture2D>(@"PlayScene\Badguys\Beetle");
     this.rectangle = new Rectangle((int)this.position.X + 16,(int)this.position.Y + 16,this.texture.Width/4,this.texture.Height);
     this.collisionrec = new Rectangle((int)this.position.X, (int)this.position.Y, this.texture.Width / 4, this.texture.Height);
     this.speed = speed;
     this.walkUp = new WalkUp(this);
     this.walkDown = new WalkDown(this);
     this.state = new WalkDown(this);
 }
Exemplo n.º 4
0
 //Constructor
 public Beetle(PyramidePanic game, Vector2 position)
 {
     // de variable meegegeven in de constructor
     // game
     this.game = game;
     //positie
     this.position = position;
     //texture
     this.texture = game.Content.Load<Texture2D>(@"Beetle\Beetle");
     //walkup nieuwe aangemaakt
     this.walkUp = new WalkUp(this);
     //walkdown nieuwe aangemaakt
     this.walkDown = new WalkDown(this);
     //state
     this.state = this.walkUp;
 }