News for hackers. Stuff that matters.
Re:Show HN: Build your own isometric city by atum47 on Monday October 26, 2020 @01:04AM (#24892980)
Hi everyone, I've been working on this tile map editor for quite a while now.

I shared it here the other day, with no much success. Someone in the comments suggested to me that I would provide an example (a map and a texture) right out of the box, so people could try the tool.

Well, here is it.

click with the right button of the mouse and drag to pan

left click place a texture

paint bucket (b) - fills a whole area

eraser (e) - delete tile

eye dropper (d) - select a tile from the map

sava - saves the map as json

export - exports the map as PNG

please watch the videos if you're interested in learning more about the tool:

https://www.youtube.com/playlist?list=PL3pnEx5_eGm88UxHH2Olz...

Also please remember this is a work in progress.

source code here - https://github.com/victorqribeiro/tileEditor

textures adapted from here - https://opengameart.org/content/simple-iso-city-work-in-prog...

Re:Show HN: Build your own isometric city by throw0101a on Monday October 26, 2020 @09:01PM (#24903455)
It does not seem to work with Safari 13 on macOS 10.14: is this on purpose or by accident? (Clicking on Map > New does nothing.)

Which browser(s) are you testing with?

Re:Show HN: Build your own isometric city by atum47 on Monday October 26, 2020 @09:03PM (#24903470)
I was having some trouble with safari cause it disabled canvas applications

you need to disable prevent cross site tracking in order to work.

tested with chrome and firefox

Re:Show HN: Build your own isometric city by atum47 on Tuesday October 27, 2020 @12:11AM (#24904434)
well, let me take a minute to explain: you can use canvas to generate a finger print of the browser, that (with lots of other stuff) can be used to track the user on the internet.

so, if your safari browser is setted to "prevent cross site tracking" canvas applications will not work.

this canvas application (and everything I do) don't track people or data.

Re:Show HN: Build your own isometric city by AlexDragusin on Monday October 26, 2020 @06:56PM (#24902469)
Nice! May I suggest making the right click on a tile to erase the tile? Played with it for a while and I think that would add to a better flow.
Re:Show HN: Build your own isometric city by atum47 on Monday October 26, 2020 @07:10PM (#24902584)
I'm still figuring things out. I needed a way to pan the map, so I attached it to the right click. in the future I could change that to the middle scroll button and use the right click to erase (isocity does that)
Re:Show HN: Build your own isometric city by antoineMoPa on Monday October 26, 2020 @06:43PM (#24902376)
Undo/redo would be super useful as I keep drawing the wrong tile every 10 seconds. (Or I need to be more patient)
Re:Show HN: Build your own isometric city by atum47 on Monday October 26, 2020 @06:49PM (#24902418)
yeah, great suggestion. I was going to do that and end up forgetting. I'll add to the to do list right now.
Re:Show HN: Build your own isometric city by withinboredom on Monday October 26, 2020 @01:36PM (#24898764)
This is pretty cool!
Re:Show HN: Build your own isometric city by atum47 on Monday October 26, 2020 @02:03PM (#24899095)
thanks