Beispiel #1
0
        public override void UnloadContent()
        {
            this.weaponManager  = null;
            this.players        = null;
            this.rocketPosition = Vector2.Zero;
            this.bulletColor    = null;
            this.hitTextFade    = null;

            this.soundWindowBlowingInstance.Stop();

            base.UnloadContent();
        }
Beispiel #2
0
        public override void UnloadContent()
        {
            this.weaponManager  = null;
            this.players        = null;
            this.rocketPosition = Vector2.Zero;
            this.bulletColor    = null;
            this.hitTextFade    = null;



            base.UnloadContent();
        }
Beispiel #3
0
        /*public void simulateSnow()
         * {
         *  ps = new ParticleSystem(new Vector2(0, 0), 40, 10000, 102);
         *  ps.setMandatory1(tex, new Vector2(6, 6), new Vector2(24, 24), Color.White, new Color(255, 255, 255, 100));
         *  ps.setMandatory2(-1, 1, 1, 1, 0);
         *  rectangle2 = new Rectangle(-100, 0, 1400, 800);
         *  ps.setMandatory3(-1, rectangle2);
         *  ps.setMandatory4(new Vector2(0.1f, 0.1f), new Vector2(1, 0), new Vector2(0,0));
         *  ps.randomDelta = new Vector2(0.1f, 0.1f);
         *  ps.Origin = 1;
         *  ps.originRectangle = new Rectangle(0, 0, 1400, 10);
         *  ps.activate();
         * }*/

        public void showHitInfo(Vector2 positionToDisplay, String text)
        {
            this.hitTextFade       = new TextRenderableFade(text, positionToDisplay, font, Color.White, Color.Transparent, 120);
            this.hitTextFade.drift = new Vector2(0f, -0.3f); // make it move up
        }