Log In  

Cart #stretched_city-3 | 2020-11-01 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
4

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

P#79089 2020-07-09 09:46 ( Edited 2020-11-01 18:06)

1

Nice! Thank you very much for this!

P#79142 2020-07-10 23:35
1

@profpatonildo glad you like it!

P#79165 2020-07-11 14:41

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-28 08:05:31 | 0.026s | Q:22