예제 #1
0
파일: Fan.cs 프로젝트: meds/ChicksnVixens
        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);
        }
예제 #2
0
        public override void Initialize(ContentManager content)
        {
            base.Initialize(content);

            sound = AudioManager.CreateSound("Sounds/ChickenBience");
        }
예제 #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;
        }
예제 #4
0
 public override void Initialize(ContentManager content)
 {
     base.Initialize(content);
     slide = AudioManager.CreateSound("Sounds/slide", true);
     slide.Play(0);
 }