Esempio n. 1
0
 public ObstacleManager(EntityManager entityManager, TRex trex, ScoreBoard scoreBoard, Texture2D spriteSheet)
 {
     _entityManager = entityManager;
     _trex          = trex;
     _scoreBoard    = scoreBoard;
     _random        = new Random();
     _spriteSheet   = spriteSheet;
 }
Esempio n. 2
0
 public GroundManager(Texture2D spriteSheet, EntityManager entityManager, TRex tRex)
 {
     _spriteSheet   = spriteSheet;
     _groundTiles   = new List <GroundTile>();
     _entityManager = entityManager;
     _regularSprite = new Sprite(spriteSheet, SPRITE_POS_X, SPRITE_POS_Y, SPRITE_WIDTH, SPRITE_HEIGHT);
     _bumpySprite   = new Sprite(spriteSheet, SPRITE_POS_X + SPRITE_WIDTH, SPRITE_POS_Y, SPRITE_WIDTH, SPRITE_HEIGHT);
     _tRex          = tRex;
     _random        = new Random();
 }
Esempio n. 3
0
 public CactusGroup(Texture2D spriteSheet, bool isLarge, GroupSize size, TRex trex, Vector2 position) : base(trex, position)
 {
     IsLarge = isLarge;
     Size    = size;
     Sprite  = GenerateSprite(spriteSheet);
 }
Esempio n. 4
0
 protected Obstacle(TRex trex, Vector2 position)
 {
     _trex    = trex;
     Position = position;
 }
Esempio n. 5
0
 public ScoreBoard(Texture2D texture, Vector2 position, TRex trex)
 {
     _texture = texture;
     Position = position;
     _trex    = trex;
 }