Page 1 of 1

Level playfield size limit of 128x128 tiles

Posted: Tue Dec 15, 2020 10:24 am
by The Rancid Dos Monks
Is it possible to significantly increase this limit, like at least double or quadruple it? Or would it require additional work and recompilation?

I was thinking it would be cool to have huge mazes.

As I looked for info on this I found this post from August 2006:
viewtopic.php?f=6&t=1133

Re: Level playfield size limit of 128x128 tiles

Posted: Tue Dec 15, 2020 10:39 am
by Holger
Is it possible to significantly increase this limit, like at least double or quadruple it? Or would it require additional work and recompilation?
It's technically possible, and it is really very quick and easy to do it: Just increase the numbers in the following two lines of code ...

Code: Select all

src/libgame/system.h:#define MAX_PLAYFIELD_WIDTH        128
src/libgame/system.h:#define MAX_PLAYFIELD_HEIGHT       128
... and recompile the game by typing "make". That's it!
I was thinking it would be cool to have huge mazes.
I'm not so sure about this. ;-)
As I looked for info on this I found this post from August 2006: viewtopic.php?f=6&t=1133
Something I wrote back then in that post:
Although one reason for the 128x128 limitation was computation speed of the playfield, the main reason is that IMHO there is no real need for a bigger playfield, as larger levels are not necessarily better levels. If somebody disagrees here or has good use for larger levels than currently possible, let me know!
I think this is still true. :-)

Re: Level playfield size limit of 128x128 tiles

Posted: Tue Dec 15, 2020 4:01 pm
by The Rancid Dos Monks
That should be easy, thanks! :D

Maybe you're right about the size limit.

Is there a way to have a small overview map of the entire level (or significant) in the corner of the screen to see where you are located?