Beispiel #1
0
        private void DrawGameField()
        {
            var gameFieldSize = m_mainViewModel.GetGameFieldSize();

            for (var i = 0; i < gameFieldSize; ++i)
            {
                for (var j = 0; j < gameFieldSize; ++j)
                {
                    var tileType = m_mainViewModel.GetGameFieldTile(new Vector2i(i, j));
                    var sprite   = m_bombSpriteHandler.GetSpritePositioned(tileType, i, j);

                    m_renderWindow.Draw(sprite);
                }
            }
        }