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:
controls:
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!
Quick example:
My first Level could be:
"|o__o __|"
Second level:
"|__oO__ _ __|"
and so on.
I think I did something like this in the past, @mrawesome.
https://www.lexaloffle.com/bbs/?tid=36426
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:
https://www.lexaloffle.com/bbs/?pid=68201#p
There was a map editor I made too that allowed you to have your map be quite large indeed, exceeding the standard 128-across.
https://www.lexaloffle.com/bbs/?pid=57363#p
Feel free to use any and all of these in your projects, @mrawesome, with my thanks.
This game is quite interesting and unique. Wishing you more success and luck soon duck life
[Please log in to post a comment]