示例#1
0
 //constructor
 public Beetle(PyramidPanic game, Vector2 position)
 {
     this.game = game;
     this.position = position;
     this.texture = game.Content.Load<Texture2D>(@"Scorpion/Beetle");
     this.walkUp = new WalkUp(this);
     this.walkDown = new WalkDown(this);
     this.state = walkUp;
 }
示例#2
0
 public Beetle(IWorld world, Point location, IListener <IGameObject> listener) :
     base(world, location, listener, new Point(32, 32), 32)
 {
     state = new BeetleStates.Normal(this);
     UpdateSprite();
 }