Пример #1
0
        protected override void LoadContent()
        {
            spriteBatch = new SpriteBatch(GraphicsDevice);

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

            textures.Add(Content.Load <Texture2D>("circle"));
            textures.Add(Content.Load <Texture2D>("star"));
            textures.Add(Content.Load <Texture2D>("diamond"));

            sonic          = Content.Load <Texture2D>("sonic");
            blue           = Content.Load <Texture2D>("blue");
            green          = Content.Load <Texture2D>("green");
            red            = Content.Load <Texture2D>("red");
            particleEngine = new ParticleEngine(textures, new Vector2(400, 240));
        }
Пример #2
0
        protected override void LoadContent()
        {
            spriteBatch = new SpriteBatch(GraphicsDevice);

            List<Texture2D> textures = new List<Texture2D>();
            textures.Add(Content.Load<Texture2D>("circle"));
            textures.Add(Content.Load<Texture2D>("star"));
            textures.Add(Content.Load<Texture2D>("diamond"));

            sonic = Content.Load<Texture2D>("sonic");
            blue = Content.Load<Texture2D>("blue");
            green = Content.Load<Texture2D>("green");
            red = Content.Load<Texture2D>("red");
            particleEngine = new ParticleEngine(textures, new Vector2(400, 240));
        }