JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 14
  • Score
    100M100P100Q49633F
  • License MIT

This is a map-loader for [kaboom](https://kaboomjs.com/) to load [tiled](https://www.mapeditor.org/) JSON maps.

Package Exports

  • tiled-kaboom

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (tiled-kaboom) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

tiled-kaboom

This is a map-loader for kaboom to load tiled JSON maps.

screenshot

You can find a deployed example of it running, here.

The terrain tiles came from here and uses a terrain-set to make it really fast & easy to make cool maps in tiled.

In your map-files, make sure the layer-format is "CSV" and compression is turned off. Embed your tilemaps.

You can see example-usage of the library here.

You can test it out with this command:

npx serve

TODO

  • more testing. only basic map is working
  • support more modes/orientation
  • margin/spacing will probably require more work on kaboom-side
  • per-tile collision shapes is nice for things like coastlines
  • support for tags ("custom properties")
  • support for object-layers (both shapes and images)
  • support for animations
  • automatic linkage, by name, with objects and sprites