This demo builds on the shoot-em-up example from demo 05, but adds:
- A scrolling background from a map file made with Tiled (uses https://lib.haxe.org/p/HaxePunkTmx/)
- Starting the player off based on an object in the Tiled map
- Load sprite sheets from one image using
haxepunk.graphics.Spritemap
- Sprite animations using the Spritemap's
.play()
method - Sound effects using the
haxepunk.Sfx
API - Centering the camera on the player sprite
Written by DaVince for HaxePunk 4.x
Please let me know if any of the demos break or contain a mistake.