←back to thread

Making a Small RPG

(jslegenddev.substack.com)
180 points ibobev | 3 comments | | HN request time: 0.008s | source
Show context
tuzemec ◴[] No.46005511[source]
Nice!

A couple of years ago, I tried something in that direction[1] using Phaser[2], and it was quite fun. I used Tiled Editor[3] to create the map and some pixel art that I purchased from itch.io.

[1] - https://story.tuzemec.com (not very mobile friendly)

[2] - https://phaser.io

[3] - https://www.mapeditor.org/

replies(2): >>46005846 #>>46006878 #
1. Froztnova ◴[] No.46005846[source]
Tiled is really great. I'm using it in a project that I occasionally poke at as well, only with Love2D, and as a sidescroller sort of project. I was impressed by how easy it was to set it up to work with my game in spite of how generic it is.

The functionality to export directly to lua source files was a particular treat, though there are probably situations where you'd want to still just use json or one of the other formats supported by Tiled even when working in a lua project.

replies(1): >>46005902 #
2. krapp ◴[] No.46005902[source]
Anyone trying to implement the Tiled API probably needs to reference this: https://eishiya.com/articles/tiled

It's a bit vague in some places (I'm still not exactly sure how parallax is supposed to be implemented) but absolutely worthwhile.

replies(1): >>46006086 #
3. Froztnova ◴[] No.46006086[source]
I'm not sure if it's the proper method, but I actually did implement parallax in my project, though I just did it by essentially creating a layer which I marked as parallax and then had my game draw it with a parallax offset from the rest of the map depending on the camera position.

https://doc.mapeditor.org/en/latest/manual/layers/#parallax-...

These docs do seem to go more in depth about the canonical values related to parallax that Tiled offers though.