One Broken Pixel

Tilemap Towns

Come in, have a look around. I’ve created an rpg-style town for you to explore.

Use the cursor keys to move, or use the on-screen arrows.


If you’re using Firefox and notice it to be laggy, try it in a different browser (Chrome and IE work fine for me). The framerate drop doesn’t seem to show up when I run the game locally, but only once I’ve pushed it to the blog. I’m not quite sure how to go about debugging something like that.

The version that’s up now is using Phaser’s Arcade physics to check for collisions. I also wrote a version using P2 physics, have a root around the repo if you’d like to compare the two. There’s some changes coming to the P2 api, so depending on how far into the future you’re reading this, the P2 physics town may or may not work.

There’s also a third physics system, Ninja, which I haven’t tried out yet. Don’t know which one to use? Read the explanation here.

Fancy making your own town? You’ll need Tiled, and the wonderful lpc tilesets from opengame.art.

Check out my code, it seems to be growing.

Comments