nesbox / TIC-80

TIC-80 is a fantasy computer for making, playing and sharing tiny games.
https://tic80.com
MIT License
5k stars 483 forks source link

[REQUEST] Fill a portion of the map with a specific tile #138

Closed fmaida closed 7 years ago

fmaida commented 7 years ago

Hello. TIC-80 is great, but I'd like to ask you a question. Inside the map editor I'd like to fill a portion of the map with a specific tile.

For example, starting from this map:

tic-80_tiny_computer_0_24_0_dev__example_tic_

I'd like to fill the area inside the container like this:

tic-80_tiny_computer_0_24_0_dev__example_tic_ 2

without having to manually put each tile. Is it actually possible?

Thank you and best regards

nesbox commented 7 years ago

It's not possible yet, I'll try to add something. Thanks.

trelemar commented 7 years ago

Back when I was working on a pixel art editor I found this recursive flood fill function http://lodev.org/cgtutor/floodfill.html#4-Way_Recursive_Method_floodFill4 if it's useful for @nesbox

fmaida commented 7 years ago

Thank you

nesbox commented 7 years ago

done with #178 closing