public ParticleController(ParticleManager particleManager, Map map)
        {
            this.ParticleManager = particleManager;
            this.Map = map;

            this.SelectedSwarm = null;

            this.NumSelectedParticles = 0F;
            this.SelectingSpeed = 1.3F;
            this.SwarmSelectRadius = 5F;
        }
Exemple #2
0
        public Player(ParticleManager particleManager, Map map)
        {
            DisplayedInfo = new Text("Life: " + MaxLife, new Font("Fonts/calibri.ttf"));
            DisplayedInfo.Position = new Vector2(20, 200);
            LifeBar = new RectangleShape(new Vector2(20, Life));
            LifeBar.Position = new Vector2(20, 250);
            LifeBar.Size = new Vector2(20, 200);

            this.ParticleController = new ParticleController(particleManager, map);
            this.MaxLife = 100F;
            this.Life = MaxLife;
        }
Exemple #3
0
        public InGameState()
        {
            bg = new Sprite(AssetManager.getTexture(AssetManager.TextureName.InGameBackground));
            bg.Origin = (Vector2) bg.Texture.Size / 2F;
            bg.Scale = Vector2.One * 0.08F;
            
            resetView = true;

            this.Map = new Map();
            ParticleManager = new ParticleManager(Map);
            Player = new Player(ParticleManager, Map);
            EnemyManager = new EnemyManager(Player);
            AlignmentManager = new AlignmentManager(Player, Map);
        }