Ejemplo n.º 1
0
 //constructor
 public Scorpion(PyramidPanic game, Vector2 position)
 {
     this.game = game;
     this.position = position;
     this.texture = game.Content.Load<Texture2D>(@"Scorpion/Scorpion");
     this.walkLeft = new WalkLeft(this);
     this.walkRight = new WalkRight(this);
     this.state = walkLeft;
 }
Ejemplo n.º 2
0
 // Maak de constructor
 public Scorpion(PyramidPanic game, Vector2 position, int speed)
 {
     this.position = position;
     this.game = game;
     this.speed = speed;
     this.texture = this.game.Content.Load<Texture2D>(@"PlayScene\Scorpion");
     this.walkRight = new WalkRight(this);
     this.walkLeft = new WalkLeft(this);
     this.state = this.walkRight;
 }
Ejemplo n.º 3
0
 //De constructor
 public Scorpion(PyramidPanic game, Vector2 position, float speed)
 {
     this.game = game;
     this.texture = game.Content.Load<Texture2D>(@"PlaySceneAssets\Scorpion\Scorpion");
     this.position = position;
     this.speed = speed;
     this.rectangle = new Rectangle((int)this.position.X +16, (int)this.position.Y +16, this.texture.Width / 4, this.texture.Height);
     this.collisionRectangle = new Rectangle((int)this.position.X, (int)this.position.Y, this.texture.Width / 4, this.texture.Height);
     this.walkLeft = new WalkLeft(this);
     this.walkRight = new WalkRight(this);
     this.state = this.walkRight;
 }
Ejemplo n.º 4
0
 //Constructor
 public Scorpion(PyramidPanic game, Vector2 position)
 {
     this.game = game;
     this.position = position;
     this.collisionRect = new Rectangle((int)this.position.X - 16,
                                        (int)this.position.Y - 16,
                                        32,
                                        32);
     this.texture = game.Content.Load<Texture2D>(@"Scorpion\Scorpion");
     this.walkLeft = new WalkLeft(this);
     this.walkRight = new WalkRight(this);
     this.state = this.walkRight;
 }
Ejemplo n.º 5
0
 //Constructor
 public Scorpion(PyramidePanic game, Vector2 position)
 {
     // game
     this.game = game;
     // positie
     this.position = position;
     //plaatje wordt geload
     this.texture = game.Content.Load<Texture2D>(@"Scorpion\Scorpion");
     //walkleft
     this.walkLeft = new WalkLeft(this);
     //walkright
     this.walkRight = new WalkRight(this);
     //state classe
     this.state = this.walkRight;
     this.collisionRect = new Rectangle((int)this.position.X,(int)this.position.Y, 32, 32);
 }