A lightweight tile engine for html5 game creation