Phaser Manifest Loader

import creatureImage from '../assets/spritesheets/creature.png' import creatureJson from '../assets/spritesheets/creature.json' preload() { 
this.game.load.atlasJSONArray('creature', creatureImage, null, creatureJson)
}
create() {
this.game.add.sprite(0, 0, 'creature')
}
const manifest = [ 
spritesheets: [
'creature'
]
]

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store