Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/smona/gulp-tiled-multiply
- Owner: Smona
- Created: 2017-10-30T21:34:11.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-30T21:57:19.000Z (over 7 years ago)
- Last Synced: 2024-12-30T17:30:56.703Z (about 1 month ago)
- Topics: gulp, phaser, tiled-map-editor
- Language: JavaScript
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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'))
});
```