Skip to content
This repository has been archived by the owner on Jun 15, 2020. It is now read-only.

Latest commit

 

History

History

demo06

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

HaxePunk demo 06

This demo showcases:

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.