{"author_name":"ZYXer","cat":"LD #37","comments":[],"epoch":1492645380,"likes":0,"metadata":{"p_key":"495","p_author":"ZYXer","p_authorkey":"20509","p_urlkey":"35338","p_title":"My Base Code for LD 38","p_cat":"LD #37","p_event":"LD38","p_time":"1492645380","p_likes":"0","p_comments":"0","p_status":"UPD5","us_key":"20509","us_name":"ZYXer","us_username":"\/author\/zyxer\/","event_start":"1492732800","event_key":"69","event_name":"LD 38"},"text":"<p>Once again I will be using my base code that I have built up since LD 26. It is written in JavaScript and can be used to create HTML5\/canvas games. You can find the base code on github: <a href=\"https:\/\/github.com\/ZYXer-\/base-code-2d\">https:\/\/github.com\/ZYXer-\/base-code-2d<\/a><\/p>\n <p>Features:<br \/>\n &#8211; a simple game loop<br \/>\n &#8211; mouse\/keyboard input processing<br \/>\n &#8211; image\/sound\/webfont preloading<\/p>\n <p>Additional classes for:<br \/>\n &#8211; playing sounds (using SoundManager2)<br \/>\n &#8211; loading and displaying PNG fonts<br \/>\n &#8211; particle systems<br \/>\n &#8211; pathfinding (using A*)<br \/>\n &#8211; image processing class to generate 8-bit style graphics<br \/>\n &#8211; utility functions for procedural map generation<\/p>\n <p>Since the last compo I have added some new features:<br \/>\n &#8211; you can choose whether the canvas should automatically resize to fit the browser window and whether the content should be scaled<br \/>\n &#8211; class for objects with basic physics (position, velocity, acceleration)<br \/>\n &#8211; a text object that gives you more functionality than the standard fillText() function.<\/p>\n <p>I also did some major refactoring, putting all demo functionality into a separate class.<\/p>\n <p>I\u2019m distributing the code under the GPL2 license, so feel free to use any part of it for your own project. And please \u2013 like always \u2013 report any bugs \ud83d\ude09<\/p>","time":"April 19th, 2017 6:43 pm","title":"My Base Code for LD 38"}