Exemple #1
0
        public void Initialize()
        {
            _groundTiles.Clear();

            foreach (GroundTile gt in _entityManager.GetEntitiesOfType <GroundTile>())
            {
                _entityManager.RemoveEntity(gt);
            }

            GroundTile groundTile = CreateRegularTile(0);

            _groundTiles.Add(groundTile);

            _entityManager.AddEntity(groundTile);
        }
Exemple #2
0
        private GroundTile CreateRegularTile(float positionX)
        {
            GroundTile groundTile = new GroundTile(positionX, GROUND_TILE_POS_Y, _regularSprite);

            return(groundTile);
        }
Exemple #3
0
        private GroundTile CreateBumpyTile(float positionX)
        {
            GroundTile groundTile = new GroundTile(positionX, GROUND_TILE_POS_Y, _bumpySprite);

            return(groundTile);
        }