public ProjectileManager(ref CreepManager creepManager)
        {
            this.creepManager = creepManager;

            List<Texture2D> hitFrostParticles = new List<Texture2D>();
            hitFrostParticles.Add(TextureManager.p_FrostSmall);
            hitFrostParticles.Add(TextureManager.p_FrostLarge);
            hitFrostParticleEngine = new ParticleEngine(hitFrostParticles, new Vector2(800, 480));

            List<Texture2D> hitCannonParticles = new List<Texture2D>();
            hitCannonParticles.Add(TextureManager.p_Fragment1);
            hitCannonParticles.Add(TextureManager.p_Fragment2);
            hitCannonParticleEngine = new ParticleEngine(hitCannonParticles, new Vector2(800, 480));
        }
        public TowerManager(ref CreepManager creepManager, GraphicsDevice graphics)
        {
            this.graphics = graphics;
            backgroundLayer = new RenderTarget2D(graphics, 1600, 920);
            userInterface = new UserInterface(ref creepManager);

            this.creepManager = creepManager;
            projectileManager = new ProjectileManager(ref creepManager);

            List<Texture2D> smokeOpaque = new List<Texture2D>();
            smokeOpaque.Add(TextureManager.p_Smoke1_O);
            smokeOpaque.Add(TextureManager.p_Smoke2_O);
            smokeOpaque.Add(TextureManager.p_Smoke3_O);
            particleEngine = new ParticleEngine(smokeOpaque, new Vector2(800, 480));
        }
Beispiel #3
0
        public UserInterface(ref CreepManager creepManager)
        {
            this.creepManager = creepManager;
            gold = 50;

            tooltipPosition = new Vector2(1260, 642);
            cannonPosition  = new Vector2(1318, 300);
            magicPosition   = new Vector2(1482, 300);
            goldPosition    = new Vector2(1260, 145);
            livesPosition   = new Vector2(1420, 145);
            timerPosition   = new Vector2(1260, 40);

            cannonTower = new CannonTower(TextureManager.towerTexture, cannonPosition);
            magicTower  = new MagicTower(TextureManager.towerTexture, magicPosition);
        }
        public UserInterface(ref CreepManager creepManager)
        {
            this.creepManager = creepManager;
            gold = 50;

            tooltipPosition = new Vector2(1260, 642);
            cannonPosition = new Vector2(1318, 300);
            magicPosition = new Vector2(1482, 300);
            goldPosition = new Vector2(1260, 145);
            livesPosition = new Vector2(1420, 145);
            timerPosition = new Vector2(1260, 40);

            cannonTower = new CannonTower(TextureManager.towerTexture, cannonPosition);
            magicTower = new MagicTower(TextureManager.towerTexture, magicPosition);
        }
        public ProjectileManager(ref CreepManager creepManager)
        {
            this.creepManager = creepManager;

            List <Texture2D> hitFrostParticles = new List <Texture2D>();

            hitFrostParticles.Add(TextureManager.p_FrostSmall);
            hitFrostParticles.Add(TextureManager.p_FrostLarge);
            hitFrostParticleEngine = new ParticleEngine(hitFrostParticles, new Vector2(800, 480));

            List <Texture2D> hitCannonParticles = new List <Texture2D>();

            hitCannonParticles.Add(TextureManager.p_Fragment1);
            hitCannonParticles.Add(TextureManager.p_Fragment2);
            hitCannonParticleEngine = new ParticleEngine(hitCannonParticles, new Vector2(800, 480));
        }
        public TowerManager(ref CreepManager creepManager, GraphicsDevice graphics)
        {
            this.graphics   = graphics;
            backgroundLayer = new RenderTarget2D(graphics, 1600, 920);
            userInterface   = new UserInterface(ref creepManager);

            this.creepManager = creepManager;
            projectileManager = new ProjectileManager(ref creepManager);

            List <Texture2D> smokeOpaque = new List <Texture2D>();

            smokeOpaque.Add(TextureManager.p_Smoke1_O);
            smokeOpaque.Add(TextureManager.p_Smoke2_O);
            smokeOpaque.Add(TextureManager.p_Smoke3_O);
            particleEngine = new ParticleEngine(smokeOpaque, new Vector2(800, 480));
        }
Beispiel #7
0
        public Level(GraphicsDevice graphics)
        {
            path = new SimplePath(graphics);
            path.Clean();

            path.AddPoint(new Vector2(225, -64));
            path.AddPoint(new Vector2(190, 535));
            path.AddPoint(new Vector2(240, 700));
            path.AddPoint(new Vector2(350, 760));
            path.AddPoint(new Vector2(555, 745));
            path.AddPoint(new Vector2(635, 645));
            path.AddPoint(new Vector2(620, 470));
            path.AddPoint(new Vector2(605, 290));
            path.AddPoint(new Vector2(655, 200));
            path.AddPoint(new Vector2(780, 155));
            path.AddPoint(new Vector2(935, 195));
            path.AddPoint(new Vector2(990, 345));
            path.AddPoint(new Vector2(960, 984));

            creepManager = new CreepManager(ref path);
            towerManager = new TowerManager(ref creepManager, graphics);
        }
        public Level(GraphicsDevice graphics)
        {
            path = new SimplePath(graphics);
            path.Clean();

            path.AddPoint(new Vector2(225, -64));
            path.AddPoint(new Vector2(190, 535));
            path.AddPoint(new Vector2(240, 700));
            path.AddPoint(new Vector2(350, 760));
            path.AddPoint(new Vector2(555, 745));
            path.AddPoint(new Vector2(635, 645));
            path.AddPoint(new Vector2(620, 470));
            path.AddPoint(new Vector2(605, 290));
            path.AddPoint(new Vector2(655, 200));
            path.AddPoint(new Vector2(780, 155));
            path.AddPoint(new Vector2(935, 195));
            path.AddPoint(new Vector2(990, 345));
            path.AddPoint(new Vector2(960, 984));

            creepManager = new CreepManager(ref path);
            towerManager = new TowerManager(ref creepManager, graphics);
        }