Пример #1
0
 public RunningLine(Game _new_parent)
 {
     _Letters = new List<Letter>();
     //LoadStory(Game1._Chapter);
     _parent = _new_parent;
     _Stars = new ParticleSystem(LoadHelper.Textures[TextureEnum.star_small], 300, 500, true, true);
 }
Пример #2
0
        public Game()
        {
            _texture = LoadHelper.Textures[TextureEnum.snake_body];
            _center = new Vector2(_texture.Width / 2, _texture.Height / 2);
            _Bird = new Bird(new Vector2(750, 500), -0.78f);

            _Snake = new Snake(new Vector2(Game1._screen_width / 2, Game1._screen_height / 2 + 50));
            _RunningLine = new RunningLine(this);
            _Blood = new ParticleSystem(LoadHelper.Textures[TextureEnum.blood], 6000, 500, true, false);
            _Fanfare = new ParticleSystem(LoadHelper.Textures[TextureEnum.star], 6000, 500, true, false);
            _Puff = new ParticleSystem(LoadHelper.Textures[TextureEnum.puff], 200, 80, true, true);
            SetChapter(Game1._Chapter);

            _fanfare_left_one = LoadHelper.Textures[TextureEnum.fanfare];
            _fanfare_left_two = LoadHelper.Textures[TextureEnum.fanfare];
            _fanfare_right_one = LoadHelper.Textures[TextureEnum.fanfare];
            _fanfare_right_two = LoadHelper.Textures[TextureEnum.fanfare];
        }