Ejemplo n.º 1
0
        public void setWeapon(ObjWeapon weapon)
        {
            if (!activity.isMuted())
            {
                Audiomanager.Play("gunload.mp3", 20);
            }

            this.weapon = weapon;
        }
Ejemplo n.º 2
0
        public ObjShot(Context context, int x, int y) : base(context, "Shot", 0.025f)
        {
            setResourceID("Flyiing_Hiigh.Resources.Drawable.WeaponStuff.shot1.png");
            setPosition(x, y);

            xSpeed = 7;
            resID  = 0;

            if (!activity.isMuted())
            {
                Audiomanager.Play("silencer.wav", 0.5);
            }
        }
Ejemplo n.º 3
0
        public ObjBackground(Context context, int theme) : base(context, "Background", 1)
        {
            currentTheme = theme;
            String resID;

            audiomanager = new Audiomanager();

            switch (theme)
            {
            case 0:
                resID = "Flyiing_Hiigh.Resources.Drawable.backshroom.png";
                audiomanager.play("backshroom.wav");
                break;

            case 1:
                resID = "Flyiing_Hiigh.Resources.Drawable.backdark.png";
                audiomanager.play("backdark.mp3");
                break;

            case 2:
                resID = "Flyiing_Hiigh.Resources.Drawable.backjungle.png";
                audiomanager.play("backjungle.mp3");
                break;

            case 3:
                resID = "Flyiing_Hiigh.Resources.Drawable.backbutterfly.png";
                audiomanager.play("backbutterlfy.mp3");
                break;

            default:
                resID = "Flyiing_Hiigh.Resources.Drawable.backshroom.png";
                audiomanager.play("backshroom.wav");
                break;
            }
            setResourceID(resID);
            this.xSpeed = -1;
        }