Level playfield size limit of 128x128 tiles

Discussion around programming R'n'D, its source code and its tools.

Moderators: Flumminator, Zomis

Post Reply
The Rancid Dos Monks
Posts: 11
Joined: Wed Nov 18, 2020 8:24 pm

Level playfield size limit of 128x128 tiles

Post 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
User avatar
Holger
Site Admin
Posts: 4073
Joined: Fri Jun 18, 2004 4:13 pm
Location: Germany
Contact:

Re: Level playfield size limit of 128x128 tiles

Post 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. :-)
The Rancid Dos Monks
Posts: 11
Joined: Wed Nov 18, 2020 8:24 pm

Re: Level playfield size limit of 128x128 tiles

Post 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?
Post Reply