englercj / phaser-tiled

A tilemap implementation for phaser focusing on large complex maps built with the Tiled Editor.
MIT License
290 stars 31 forks source link

Fix SpriteBatch instantiation #18

Closed amadeus closed 9 years ago

amadeus commented 9 years ago

SpriteBatch requires the game instance to be passed into the constructor. I am guessing this was a recent API change since I am using Phaser 2.2.1.

englercj commented 9 years ago

Good catch, I was just treating it like PIXI's sprite batch that has no arguments.

amadeus commented 9 years ago

No problem! Thanks for being responsive!