remy / zx-tools

A collection of ZX web based tools and libraries
https://zx.remysharp.com
41 stars 3 forks source link

another 'capture' of a few points, sorry #8

Closed robsoft closed 4 years ago

robsoft commented 4 years ago

Sorry Remy not sure if you'd prefer them itemised & detailed, happy to come back and expand this if so.

1) Could we set dimensions of the tile map editor? I guess that means the map display area might need to be a scrollable window etc.

2) I've had some trouble loading a tile map file back in, I can drag it onto the tab but I get something weird back out (is it reading the header as tile data?) Not sure if I'm doing something wrong but happy to make a video or send you tilemap files etc. The maps I'm saving are working great on the machine so I think it's the process of loading back in I'm having trouble with.

3) I've done this now but might be handy to either give you my sprite sheet, or have an option to just generate a 'numbered' set of sprites. So as well as a blank set, you can have a set of numbered tiles (ie, the image on the tile is a number) that can be used and edited as things develop, especially if you're working in a team. I do appreciate that this is niche and once you've made a set, you've always got it handy anyway. :-)

The other stuff I was thinking about thus far, you seem to have already done or got in your previous issue capture. :-)

remy commented 4 years ago
  1. I wanted to check the bank size, but IIRC it's 64K, that should be the upper range of the tile. I've got some panning logic already in place, so it should be feasible to make that scroll around (otherwise I just use the browser's native scrolling which might be at least a good stopgap). I can't see tile dimension being a problem (famous last words).

  2. The .map file has a +3dos header on it, but it should also jump over it when loading in the browser. Can you share the tilemap you've got or perhaps a screenshot of what you're seeing. I wonder if a direct upload botton would help here too.

  3. Heh, yeah that's fairly niche, but I can see something like that being useful for prototyping. It might be easier just to make a couple of sprite sheets with numbers and one with letters and have them as some kind of "pre-populate" option (I'd be inclinded to grab something off itch.io, drop into the png importer and populate the spritesheet for re-use in the app).

Don't appologise for suggestions - I made this tool to help my own and other's dev - so these improvements make it better for me too 👍

robsoft commented 4 years ago

point 2 - ok, brilliant. Hope this helps - I suspect you're going to have to find a nice way to tell me I'm being an idiot.

Here's my sprite file, the 2 map files, what they looked like in the browser, what they looked like in CSpect (all good so far), then 3 PNGs showing what happened when I try to load them back into the browser. Hope this makes sense!

(argh - needed to zip the map and spr file) spr-and-maps.zip map 2 in CSpect map 1 in CSpect map 2 in browser map 1 in browser 1-first reload sprites 2-dragged roadmap1 to tile map tab 3-sprite editor after dragging roadmap1 to tile map tab

remy commented 4 years ago

Okay, I know what's happening in the tile map upload.

The drag and drop anywhere is for sprite sheets - to upload a map, you need to open the tile panel and drop it directly on the tilemap canvas (I know, not obvious at all!) - that should hopefully unlock you a little.

That sprite sheet with numbers, would you be happy for it to be used as a sample sprite sheet in the tool?

robsoft commented 4 years ago

Ha ha! I knew it would be me, what an idiot. Sorry Remy, I hope I haven't wasted much of your time. Yes, that works a treat now, just tried it. Thank you!

Sprite sheet - yes, by all means, it was just a 5 minute scribble to help me visualise stuff when it got over into the Next really, you may do whatever you see fit with it!

remy commented 4 years ago

I believe all these issues are now addressed - thanks again for the feedback.

Screenshot 2020-04-23 at 15 18 01