{"author_name":"FireZenk","cat":"LD #28","comments":[],"epoch":1386930240,"likes":1,"metadata":{"p_key":"37064","p_author":"FireZenk","p_authorkey":"27429","p_urlkey":"72662","p_title":"Setting up my HTML5 environment with node Yeoman","p_cat":"LD #28","p_event":"LD28","p_time":"1386930240","p_likes":"1","p_comments":"0","p_status":"UPD5","us_key":"27429","us_name":"FireZenk","us_username":"firezenk","event_start":"1386892800","event_key":"20","event_name":"LD28"},"text":"<p>As I mentioned in my obligatory &#8220;I&#8217;m in&#8221; I decided to make my game with HTML5 and have finally chosen as engine: Phaser.<\/p>\n <p>After several days trying to create a good environment I found the perfect solution and will share as it serves someone else:<\/p>\n <blockquote><p>INSTRUCTIONS<\/p>\n <p>&#8211; Install Node.js<\/p>\n <p>&#8211; Install the required npm modules by issuing these commands:<\/p>\n <p><code>npm install -g yo generator-phaser<\/code><\/p>\n <p>&#8211; Create a new directory for your game:<\/p>\n <p>Unix\/OSX : <code>mkdir ~\/Desktop\/mygame &amp;&amp; cd $_<\/code><br \/>\n Windows : <code>mkdir %USERPROFILE%\\Desktop\\mygame &amp;&amp; cd %USERPROFILE%\\Desktop\\mygame<\/code><\/p>\n <p>&#8211; Invoke the generator:<\/p>\n <p><code>yo phaser<\/code><\/p>\n <p>&#8211; Run a local development server (livereload enabled) with this command:<\/p>\n <p><code>grunt<\/code><\/p>\n <p>&#8211; Package your game (i.e. minify css, html and js) with:<\/p>\n <p><code>grunt dist<\/code><\/p><\/blockquote>\n <p>Link to Yeoman: <a title=\"http:\/\/yeoman.io\/\" href=\"http:\/\/yeoman.io\/\">http:\/\/yeoman.io\/<\/a><\/p>\n <p>Link to Phaser generator: <a title=\"https:\/\/npmjs.org\/package\/generator-phaser\" href=\"https:\/\/npmjs.org\/package\/generator-phaser\">https:\/\/npmjs.org\/package\/generator-phaser<\/a><\/p>\n <p>There are also many other generators and secure projects for other game engines, you can look here:<br \/>\n <a title=\"https:\/\/npmjs.org\/\" href=\"https:\/\/npmjs.org\/\">https:\/\/npmjs.org\/<\/a><\/p>\n \n <p>Tags: <a href=\"http:\/\/ludumdare.com\/compo\/tag\/html5\/\" rel=\"tag\">html5<\/a>, <a href=\"http:\/\/ludumdare.com\/compo\/tag\/javascript\/\" rel=\"tag\">javascript<\/a><\/p>","time":"December 13th, 2013 5:24 am","title":"Setting up my HTML5 environment with node Yeoman"}