2015-02-11 Gridmapper Progress

https://alexschroeder.ch/pics/15868444504_66e1472190_o.png

*Gridmapper*

https://alexschroeder.ch/pics/15868444504_66e1472190_o.png

Gridmapper

Gridmapper has progressed enormously! I’m surprised myself. I guess I’m open for feature requests!

Gridmapper

The current list of items I’m considering:

canvg

​#RPG ​#Gridmapper

Comments

(Please contact me if you want to remove your comment.)

Now with keyboard navigation.

– Alex Schroeder 2015-02-12 12:37 UTC

---

Reading a map from an URL works. Note sure how I want embedding to work...

from an URL

– Alex Schroeder 2015-02-12 15:49 UTC

---

If you use the right or down arrow keys to move beyond the edge, the map will increase. There is now a link export that basically “scripts” the map.

– Alex Schroeder 2015-02-12 21:06 UTC

---

Amazing litte tool! I like it and it’s hard to not play around whit it 😉 Thanks for sharing!

In chrome, ? and $ for a secret door is not working (s did). I think there is no need for a PNG export - it’s easy to take a screenshot.

My wish list:

Hm, $ doesn’t work for you? It works on my Chrome on a Mac. What is your keyboard layout – perhaps the problem is that your keyboard layout requires you to press Shift? Strange.. ? also works – and that requires a Shift key on my keyboard. Weird.

– Alex Schroeder 2015-02-12 21:56 UTC

---

Rudimentary wall drawing is now available using `w`. Erasing of wall features has been moved to `W`.

As for the wish list: I guess I could keep traps separate from floor tiles and stairs – thus enabling them to be added anywhere. In my games, the stairs are never trapped! 😄

Diagonal passages are as hard to draw in this system as walls. I tried some stuff in this commit, but I was very unhappy with it. If you can think of a good user interface, let me know. Right now I’m thinking that there should be a “wall mode” which moves the cursor along the walls themselves, thus making it obvious where the next wall segment will be placed.

this commit

What sort of furniture would you want? Something generic like the stuff available in ANAmap? Or stuff like shelves, beds, tables, and the like? If so, do you have any icons you favor? I still remember the icons in use by *Das Schwarze Auge* (first edition). And then there’s the problem of what letters to use... If there is too much choice, the character based input will no longer scale.

ANAmap

Status and pillars are nice – and cycling them with the trap is an excellent idea.

– Alex Schroeder 2015-02-12 23:50 UTC

---

My keyboard setting is Swiss German and yes, I have to press shift for $ and ?. The L was wotking. I can test it whit different settings/Browser on Sunday.

I haven’t looked that deep in the source to tell how things really work and what is hard and what easy to implement.

I was thinking about generic furniture. Just to tell “here is something, check the key” and that the rooms look not so empty. For the interface, it could be i (interior) which circles trough maybe 4 different arangement of light gray squares on top of the tile. Same whit t which could, on the second press, excange the trap symbol by a star in a circle (statue) and on the third by a black dot for a pilar. Or the furniture can come after that on the t.

The half tile could be put whit h as a symbol like traps or furniture on the same layer. It would just fit best on squares whit out floor.

Hehe. Good to know about no traps on stairs. 😉

– Sam 2015-02-13 08:50 UTC

---

OK, keybindings have changed again – and I still think it should work on Chrome since I *have* Chrome installed and the `?` works as intended.

In other news: pillars, statues, diagonals!

OSR Logo.

OSR Logo

– Alex Schroeder 2015-02-13 17:30 UTC

---

I definitely need better documentation. A screencast would be nice. 😄

– Alex Schroeder 2015-02-13 20:38 UTC

---

Now with demo! This is what it generates: demo result.

demo result

– Alex Schroeder 2015-02-14 16:13 UTC

---

I tested it in different browsers on Ubuntu and Windows whit different keyboard layouts.

In Firefox everything works.

In Opera Presto and IE: Download doesn’t work

Chromium: Download doesn’t work, saving whit Ctr+S works. Chrome: Link and download doesn’t work, saving whit Ctr+S works.

For the keys $ and ?: In Chrome/Chromium it looks like a different keyboard layout is used inside the svg. Whit a Swiss German keyboart layout, pressing $ (no shift key actually) results in a ß in the KeyboardEvent and ? of a Û... But it changes whit the keyboard layout _ computer._

If I change

document.onkeydown = keyPressed; // capture arrow keys

to

document.onkeypress = keyPressed; // capture arrow keys

The ? works but a lot of other keys return wired stuff like $ is reported as “Home”...

I couldn’t find any thing on a issue like that, but at least there are some similar bugs in chrome here... https://groups.google.com/a/chromium.org/forum/​#!topic/chromium-discuss/JisPyiCLOAs

https://groups.google.com/a/chromium.org/forum/​#!topic/chromium-discuss/JisPyiCLOAs

For now, I stick whit Firefox and enjoy the amazing new functions. Thanks a lot!

– Sam 2015-02-15 18:52 UTC

---

Man, what sadness is this! Will I have to use jQuery in the end!? All I wanted to do was use Vanilla JS. There *must* be a better solution!

Vanilla JS

– Alex Schroeder 2015-02-15 23:46 UTC