Small subscripting based map system

Hi all,

This is probably going to become a core NVGT include at some point once it is more polished, however it is at least usable.

This is a simple map parsing system that uses subscripting for it's map loading, which means that maps can be created with dynamic loops, variables and functions.

Attached to this post is both the map class and a small example of using it.

Code is zlib licensed, just like the rest of NVGT.

Questions and suggestions welcome!
map.nvgt (7.6 KB)
map_test.nvgt (1.1 KB)

7 Likes

thanks for this class, Sam!
I was wondering: does it support both 2d and 3d map creation?
-Rory

Hi,

Right now it only supports 3d, however I can set any z parameter in functions to 0 for example string get_tile(float x, float y, float z = 0) which would basically allow 2d maps to function.

Thanks for the idea!

Greetings. Any news on this? Any updates you haven't released yet? I plan to use this include and would like to be up to date :smile: )

Also, how would I add other objects to my map?