Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/smona/gulp-tiled-multiply

A gulp plugin for multiplying the width of Tiled tilemaps
https://github.com/smona/gulp-tiled-multiply

gulp phaser tiled-map-editor

Last synced: 11 days ago
JSON representation

A gulp plugin for multiplying the width of Tiled tilemaps

Awesome Lists containing this project

README

        

# gulp-tiled-multiply

A gulp plugin for multiplying the width of [Tiled](http://www.mapeditor.org/) tilemaps.
Useful for infinitely scrolling maps.

## Getting Started

1. Install it

`npm install --save-dev gulp-tiled-multiply`

2. Use it in a gulp task

```javascript
var multiply = require('gulp-tiled-multiply');

gulp.task('tilemaps', function() {
return gulp.src('./public/tilemaps/*.json')

// pass an argument for how many times you want the map multiplied.
// Defaults to 3
.pipe(multiply(2))

// Output to a different directory
.pipe(gulp.dest('./public/tilemaps/tripled'))
});
```