This is a little tool to convert a big ol' list of strings into the PICO-8 map.
This has some very specific usage cases, and there's probably a better way somehow, but heres an example of when you might use it:
Imagine you are making a big parkour game, with lots of fairly big levels. You can't possibly hold all of them in the PICO-8's map together. So you use this tool to load in a new map on demand.
In this case, you may want to use this.
Here's the cart:
arrow keys to move camera position
X/C etc to change to map 2
I just had a quick glance at the code-i thought you meant literal strings like "hello, is me, the cat" to maps. The thing you´re doing is kinda similar to how maps are handled behind the scenes anyway. Maybe it would be a nice challenge to check for pixel values in text and translate those to map coordinates, as that would really save a lot of space and allow for a ton of levels!
My first Level could be:
"|__oO__ _ __|"
and so on.
I think I did something like this in the past, @MrAwesome.
Mine takes existing map data and converts it to compressed text. Then you can remove all map data, recall the text, and use it this way.
There is also my Str2Board where you can use normal text in your code to display sprites and tiles:
There was a map editor I made too that allowed you to have your map be quite large indeed, exceeding the standard 128-across.
Feel free to use any and all of these in your projects, @MrAwesome, with my thanks.
[Please log in to post a comment]