Esempio n. 1
0
 public ManagerDeObstaculos(Texture2D textura, ManagerDeEntidades managerDeEntidades, Trex trex, MostrarPuntaje mostrarPuntaje)
 {
     _textura            = textura;
     _managerDeEntidades = managerDeEntidades;
     _trex     = trex;
     _puntajes = mostrarPuntaje;
     _random   = new Random();
 }
        public ManagerDeTerreno(Texture2D hojaDeSprites, ManagerDeEntidades managerDeEntidades, Trex trex)
        {
            _hojaDeSprites      = hojaDeSprites;
            _managerDeEntidades = managerDeEntidades;
            _tilesDeTerreno     = new List <TileDeTerreno>();

            _terrenoRegular   = new Sprite(hojaDeSprites, POS_X, POS_Y, LARGO_SPRITE, ALTO_SPRITE, Color.White);
            _terrenoEscabroso = new Sprite(hojaDeSprites, POS_X + LARGO_SPRITE, POS_Y, LARGO_SPRITE, ALTO_SPRITE, Color.White);

            _trex   = trex;
            _random = new Random();
        }
Esempio n. 3
0
 public GrupoDeCactus(Texture2D textura, bool esLargo, Tamanios tamanio, Trex trex, Vector2 posicion) : base(trex, posicion)
 {
     EsLargo       = esLargo;
     Dimension     = tamanio;
     grupoDeCactus = GenerarSprite(textura);
 }
Esempio n. 4
0
 protected Obstaculo(Trex trex, Vector2 posicion)
 {
     _trex    = trex;
     Posicion = posicion;
 }