Exemple #1
0
 public Baddie(Vector2 position, float maxSpeed, Facing facing, Map map, TileSet tileSet)
     : base(position, maxSpeed, facing,map,tileSet)
 {
     this.map = map;
     this.tileSet = tileSet;
     direction = Direction.Stand;
     enemy = new Enemy(Position, Game.GetInstance().GetSprite("Wall"));
     Game.GetInstance().EManager.Add(enemy);
     nextChange = 0f;
     rand = new Random();
     blind = false;
 }
Exemple #2
0
        public Randy(Vector2 position, float maxSpeed, Facing facing, Map map, TileSet tileSet)
            : base(position, maxSpeed, facing,map,tileSet)
        {
            this.direction = direction;
            this.map = map;
            this.tileSet = tileSet;
            renderPos = new Vector2(0, 0);

            walkingSound = Game.GetInstance().GetSound("Walk").CreateInstance();
            walkingSoundDuration = (float)Game.GetInstance().GetSound("Walk").Duration.TotalMilliseconds;
            walkingSound.Volume = 1f;
            moving = false;
            character = new Character(Position);
            Game.GetInstance().EManager.Add(character);
            nextLyre = -1;
            nextGlue = -1;
            nextFire = -1;
        }