Ejemplo n.º 1
0
        public Fan(JabWorld world)
            : base("misc")
        {
            this.world = world;

            Rot = 0.24f * JabMath.PI;
            Layer = SpriteLayer.LAYER8;

            world.MakeEntityGroup(FanEntitySpaceGroup);
            EventManager.Get.RegisterListner(this);

            //++NumFans;
              //  if (FanSound == null)
            {
                FanSound = AudioManager.CreateSound("Sounds/Fan_Blowing_2", true);
                FanSound.Volume = 0.0f;
            }
            FanSound.Play(1.0f);
        }
Ejemplo n.º 2
0
        public override void Initialize(ContentManager content)
        {
            base.Initialize(content);

            sound = AudioManager.CreateSound("Sounds/ChickenBience");
        }
Ejemplo n.º 3
0
        public override void Initialize(ContentManager Content)
        {
            base.Initialize(Content);

            AsType.CreateFramesFromXML("Chickens_Frames");

              //  PosY = 500;

            AsType.CurrentFrame = "bird-chicken-00000";

            AsType.Width = 128;
            AsType.Height = 128;

            AsType.Animation = AccelerateAnimation;

            launchInst = AudioManager.CreateSound("Sounds/Chicken_Launch_0" + BaseGame.Random.Next(1, 7));
            launchInst.Play(1.0f);

            Sprite.Layer = SpriteLayer.LAYER10;

            World.BeginContact += OnContact;
            World.EndContact += EndContact;
        }
Ejemplo n.º 4
0
 public override void Initialize(ContentManager content)
 {
     base.Initialize(content);
     slide = AudioManager.CreateSound("Sounds/slide", true);
     slide.Play(0);
 }