Coder Social home page Coder Social logo

rpj / tmt Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 757 KB

A single-file, no-dependency, offline-capable tool for exploring, annotating & exporting tilemaps.

Home Page: https://rpj.github.io/tmt/

HTML 100.00%
game-development gamedev gamedev-tool javascript screenshots vanilla-js vanilla-javascript tile exporting-tilemaps tilemap-loading

tmt's Introduction

TileMapTool

A single-file, no-dependency, offline-capable tool for exploring, annotating & exporting tilemaps.

Running

Locally

Download index.html and open it. That's it.

Online

At GitHub Pages, itch.io or computerpho.be.

Usage

Explore the default map or load another: built-in maps will automatically set the correct parameters. If loading from disk, proceed to set the appropriate "tile w/h" (width/height) and "spacing" parameters via the controls; all control changes are reflected on the tilemap live. The control value label is double-clickable to allow arbitrary input (caveat emptor!).

Click on any tile to select & have it displayed in the larger "selected" view, which shows the tile's X & Y coordinates (in tile coordinate space) as well as the top-left and bottom-right coordinates of the tile in the source image coordinate space. The selection can also be moved with the arrow keys.

Right-click any tile to annotate it with a group & name. Once annotation mode has been entered - implicitly by creating the first annotation group - tilemap loading & parameter controls will be locked (though viewport controls will remain available).

In annotation mode, additional controls will become available beneath the selected view:

  • "Save JSON": Creates & downloads a JSON file describing the annotated tiles and their positions on the currently-loaded tilemap in both tile-coordinate & pixel-coordinate spaces.
  • "Export New": Creates a new PNG image containing only the annotated tiles as well as a JSON file with the appropriate annotation metadata in the same shape as "Save JSON" above. This option will initiate multiple downloads, which your browser may require you explicitly allow.
  • "Discard": Immediately discards all current annotations and returns to the default mode, re-enabling tilemap loading & parameter controls.

Screenshots

Screenshot 1 Screenshot 2 Screenshot 3

tmt's People

Contributors

rpj avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

tearitco

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.