gulp-tiled-multiply
v1.0.4
Published
A gulp plugin to multiply Tiled tilemaps horizontally
Downloads
6
Readme
gulp-tiled-multiply
A gulp plugin for multiplying the width of Tiled tilemaps. Useful for infinitely scrolling maps.
Getting Started
- Install it
npm install --save-dev gulp-tiled-multiply
- Use it in a gulp task
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'))
});