예제 #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);
        }
예제 #2
0
        private GroundTile CreateRegularTile(float positionX)
        {
            GroundTile groundTile = new GroundTile(positionX, GROUND_TILE_POS_Y, _regularSprite);

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

            return(groundTile);
        }