Esempio n. 1
0
        public TestParticleGenerator()
        {
            Dictionary <string, int> dictionary = new Dictionary <string, int>
            {
                { "dustParticle", 100 },
                { "SpriteTest", 0 }
            };

            _particleGenerator = new ParticleGenerator(400, 300, dictionary, Direction.Right, 0, 999, 0.2f, 10);
            GeneratorUpdater.AddGenerator(_particleGenerator);
            GeneratorUpdater.AddGenerator(new ParticleGenerator(250, 250, dictionary, Direction.Top, new Angle(45), 10, 0.5f, 4));
        }
Esempio n. 2
0
 protected GameModel()
 {
     Graphics = new GraphicsDeviceManager(this);
     Content.RootDirectory = "Content";
     SpriteDrawer          = new SpriteDrawer(this);
     SpriteUpdater         = new SpriteUpdater(this);
     SpriteLoader          = new SpriteLoader(this, Content, SpriteDrawer);
     InputsManager         = new InputsManager(this);
     TextSpriteDrawer      = new TextSpriteDrawer(this);
     TextSpriteUpdater     = new TextSpriteUpdater(this);
     TextSpriteLoader      = new TextSpriteLoader(this, Content, TextSpriteDrawer);
     GeneratorUpdater      = new GeneratorUpdater(this);
     CameraUpdater         = new CameraUpdater(this);
     Cursor            = new Cursor("Cursor2");
     ShapeDrawer       = new ShapeDrawer(this);
     _currentGameState = GameStateType.Game;
 }