Introduction
Stretched City is a tiny room editor for PICO-8 games.
It can be used for other programs as well, but then you have to parse the string yourself.
The tool works in the web, but for a more smoother experience I would recommend you to use it in PICO-8.
A room is 16x16 in tile-size. It goes from row to row writing down the id of that tile. 0 represent an empty tile.
So if you want to use this in another program it should not be that difficult to parse the string.
To load your string into the map in PICO-8 use this method:
function load_room(room_str) local room=split(room_str) local m_x=0 local m_y=0 for i=1,#room do mset(m_x,m_y,room[i]) if m_x < 15 then m_x+=1 else m_x=0 m_y+=1 end end end |
Controls
Move cursor
Keyboard: Arrow keys | Controller: D-pad or Joystick
Add tile
Keyboard: Z | Controller: A / Y
Remove tile
Keyboard: X | Controller: B / X
Copy tile
Stand still for a while on a tile you want to copy
Press P to open the pause menu where you can Save/load and Delete current room.
Have fun and hopefully this can be used in some ways when you need a lot of levels in your PICO-8 game!
/ Sebastian Lind @Elastiskalinjen
[Please log in to post a comment]