Beispiel #1
0
        public void SpawnMiniExplosion(int X, int Y)
        {
            AnimatedEntity Explosion = new AnimatedEntity(new Rectangle(X - 3, Y - 3, 7, 7), AssetManager.Sprites["MiniExplosion"], Color.White, new int[] { 2 }, 0.1f);

            Explosion.Play(0, false);
            Explosions.Add(Explosion);
        }
Beispiel #2
0
        public void SpawnExplosion(int X, int Y)
        {
            AnimatedEntity Explosion = new AnimatedEntity(new Rectangle(X - 12, Y - 12, 25, 24), AssetManager.Sprites["Explosion"], Color.White, new int[] { 8 }, 0.1f);

            Explosion.Play(0, false);
            Explosions.Add(Explosion);
            AssetManager.PlaySoundRandomPitch("Explosion", 1, 0.2f, -0.2f);
        }
Beispiel #3
0
        public override void LoadContent()
        {
            Door = new AnimatedEntity(new Rectangle(0, 0, 64, 64), AssetManager.Sprites["Door"], Color.White, new int[] { 19, 26 }, 0.05);
            Door.Play(0, false);

            CanPressUp   = true;
            CanPressDown = true;

            Menu = new AnimatedEntity(new Rectangle(0, 0, 64, 64), AssetManager.Sprites["ScoreMenu"], Color.White, new int[] { 2 }, 0);
            base.LoadContent();
        }
Beispiel #4
0
        public override void LoadContent()
        {
            Door = new AnimatedEntity(new Rectangle(0, 0, 64, 64), AssetManager.Sprites["Door"], Color.White, new int[] { 19, 26 }, 0.05f);
            Door.Play(0, false);

            Menu = new AnimatedEntity(new Rectangle(0, 0, 64, 64), AssetManager.Sprites["BlastMenu"], Color.White, new int[] { 2 }, 0f);

            CanSelect    = true;
            CanPressUp   = true;
            CanPressDown = true;

            IsDoorClosing = false;

            base.LoadContent();
        }
Beispiel #5
0
        public override void LoadContent()
        {
            Door = new AnimatedEntity(new Rectangle(0, 0, 64, 64), AssetManager.Sprites["Door"], Color.White, new int[] { 19, 26 }, 0.05);
            Door.Play(0, false);

            Player = new Player(this, new Rectangle(78, 78, 16, 12), AssetManager.Sprites["SpaceShip"], Color.White, 0.1f, 1.1f, 0.1f, 0.25, 2);

            Camera = new Camera(ScreenManager, Player, 0.78f, 4);

            Background = new Background(Camera);

            Score = new Numbers(new Point(1, 1));

            EnemyManager = new EnemyManager(this);

            Health = new Health(new Point(64 - 1 - 23, 1), this);

            GFM = new GameFeelManager(this);

            PickupManager = new PickupManager(this);

            base.LoadContent();
        }