Exemple #1
0
        public Boss()
        {
            IsActive = false;

            Position = m_StartPos + m_Hidden;

            for (int i = 0; i < m_Particles.Length; i++)
            {
                m_Particles[i]      = new Particles(new Vector2(), Color.Red, 20, 5, 0.0f, new Vector2(), 3.0f, true, 70, 5, 2, true);
                m_Particles[i].Stop = true;
            }

            m_BeamManager = new BeamManager(new Rectangle(0, 0, Level.getWidthOfArray() * 32, Level.getHeightOfArray() * 32), Color.DarkRed, Color.OrangeRed);
        }
Exemple #2
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);

            //stuff to change screen size / fullscreen
            graphics.PreferredBackBufferWidth  = screenWidth;
            graphics.PreferredBackBufferHeight = screenHeight;
            //graphics.IsFullScreen = true;
            graphics.ApplyChanges();

            Sounds.loadContent(Content);
            BackgroundMusic.loadContent(Content);
            IsMouseVisible = true;

            hud = new Hud();
            hud.LoadContent(Content);

            screenManager = new ScreenManager();
            screenManager.LoadContent(Content, graphics);

            gateManager    = new GateManager();
            m_EnemyManager = new EnemyManager();
            pickupManager  = new PickUpManager();
            tiles          = new Level(new Rectangle(0, 0, 32, 32), new Rectangle(0, 0, 32, 32));
            tiles.loadContent(Content, "EnchantedForestTileSetUpdated", "Content/Level0.txt");

            EnemyManager.loadContent(Content);
            PickUpManager.loadContent(Content);
            GateManager.loadContent(Content);
            player = new Player(new Vector2(200, 1000), new Rectangle(0, 0, 128, 64), new Rectangle(0, 0, 128, 64));
            player.loadContent(Content);



            camera        = new Camera(GraphicsDevice.Viewport);
            camera.Limits = new Rectangle(0, 0, Level.getWidthOfArray() * tiles.Destination.Width, Level.getHeightOfArray() * tiles.Destination.Height);

            background1 = new Background(camera);
            Background.loadContent(Content, Level.levelCount, 1);
            background1.setParallaxes();

            backgroundManager = new BackgroundManager();
            backgroundManager.addBackground(background1);

            boss = new Boss();
            boss.loadContent(Content);
            // TODO: use this.Content to load your game content here
        }
Exemple #3
0
        public void loadContent(ContentManager content)
        {
            //Added November 26, 2013
            m_Animate.loadContent("Unicorn", content);
            // m_Animate.addAnimation(new Animation(16, new int[] { 0 }));
            m_Animate.addAnimation(new Animation(16, new int[] { 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }));
            m_Animate.addAnimation(new Animation(16, new int[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }));
            m_Animate.addAnimation(new Animation(16, new int[] { 0 }));
            m_Animate.addAnimation(new Animation(16, new int[] { 0 }));
            m_Animate.addAnimation(new Animation(16, new int[] { 0, 1 }));
            m_Animate.addAnimation(new Animation(16, new int[] { 0, 1 }));
            m_Animate.addAnimation(new Animation(8, new int[] { 0, 1, 2, 3 }));
            m_Animate.addAnimation(new Animation(8, new int[] { 0, 1, 2, 3 }));
            //Add in animations

            m_Cross = content.Load <Texture2D>("cross");

            m_LaserManager.loadContent(content);

            m_LevelBounds = new Rectangle(0, 0, Level.getWidthOfArray() * 32, Level.getHeightOfArray() * 32);

            //Added November 27, 2013
            m_Particles.loadContent(content);
        }
Exemple #4
0
 public LavaWave()
 {
     m_LevelBounds = new Rectangle(0, 0, Level.getWidthOfArray() * 32, Level.getHeightOfArray() * 32);
 }