Hi.
My first question would have to be: are you sure that your level has 10,000 cells (125x80) and not around 800 (this would show 125x7)?
My second question would then have to be: are you sure that
Engine::windowSize.x is the width of the level in cells (125, is it?) and not the width of the level in co-ordinates or the width of the window?
With those out of the way, let me attempt to clarify what those three things do:
- setLevelWidth
Specifies the number of cells from left to right in the map. - setSize
Specifies the final visual size. - setGridSize
Specifies how many grid cells can fit inside that final visual size. That is, how many cells can be seen; the visual size is divided by this size to get the cell size.
According to your code, you seem to have setup these three things correctly