{"author_link":"\/users\/graal","author_name":"GRaAL","author_uid":"graal","comments":[],"epoch":1501796133,"event":"LD39","format":"md","ldjam_node_id":48072,"likes":1,"metadata":{"p_key":"100253","p_author":"GRaAL","p_authorkey":"1000484","p_urlkey":"315963","p_title":"(\"game\" in game) === true","p_cat":"LDJam ","p_event":"LD39","p_time":"1501796133","p_likes":"1","p_comments":"0","p_status":"WAYBACK","us_key":"1000484","us_name":"GRaAL","us_username":"graal","event_start":"1501200000","event_key":"74","event_name":"LD 39"},"node":{"_collation":{"body_sanitizer":"TextUtils::SanitizeHTML via existing importer","event":"LD39","removed_author":false},"_superparent":32802,"_trust":1,"author":484,"body":"If you already played our [Galvanica](https:\/\/ldjam.com\/events\/ludum-dare\/39\/galvanica) entry, you might notice that some dialogs contain minigames - small games inside big game. We added them to diversify gameplay a bit and found that it was good idea.\n![minigame1.gif](\/\/\/raw\/4e1\/z\/88de.gif) ![minigame3.gif](\/\/\/raw\/4e1\/z\/88e0.gif)\n\nEach minigame is very simple, so we didn\u2019t use game engine\u2019s capabilities to create them (except key pressing detection). For each of them we just draw pixels over relatively small canvas. So that was an interesting challenge inside a challenge - creating playable piece of\u2026code with just plain old HTML5 canvas. And insert it inside Phaser.js game \ud83d\ude03\n\nHere is \u00abcatch the container\u00bb minigame.\n![minigame2.gif](\/\/\/raw\/4e1\/z\/88df.gif)\nAnd here is how its code looks like - pretty small, I think.\n![Listing.png](\/\/\/raw\/4e1\/z\/88e3.png)\n\nSo this is how they done. Good luck and remember - potatoes are rich in calories, don\u2019t hesitate to throw it into furnace!\n\n[![tutor1.gif](\/\/\/raw\/4e1\/z\/88e4.gif)](https:\/\/ldjam.com\/events\/ludum-dare\/39\/galvanica) ","comments":1,"comments-timestamp":"2017-08-03T22:51:41Z","created":"2017-08-03T21:26:38Z","files":[],"files-timestamp":0,"id":48072,"love":1,"love-timestamp":"2017-08-03T22:50:34Z","meta":[],"modified":"2017-08-03T22:51:41Z","name":"(\"game\" in game) === true","node-timestamp":"2017-08-03T21:35:33Z","parent":34630,"parents":[1,5,9,32802,34630],"path":"\/events\/ludum-dare\/39\/galvanica\/game-in-game-true","published":"2017-08-03T21:35:33Z","scope":"public","slug":"game-in-game-true","subsubtype":"","subtype":"","type":"post","version":135564},"node_metadata":{"n_key":"48072","n_urlkey":"315963","n_parent":"34630","n_path":"\/events\/ludum-dare\/39\/galvanica\/game-in-game-true","n_slug":"game-in-game-true","n_type":"post","n_subtype":"","n_subsubtype":"","n_author":"484","n_created":"1501795598","n_modified":"1501800701","n_version":"135564","n_status":"WAYBACK"},"source_url":"https:\/\/ldjam.com\/events\/ludum-dare\/39\/galvanica\/game-in-game-true","text":"If you already played our [Galvanica](https:\/\/ldjam.com\/events\/ludum-dare\/39\/galvanica) entry, you might notice that some dialogs contain minigames - small games inside big game. We added them to diversify gameplay a bit and found that it was good idea.\n![minigame1.gif](\/\/\/raw\/4e1\/z\/88de.gif) ![minigame3.gif](\/\/\/raw\/4e1\/z\/88e0.gif)\n\nEach minigame is very simple, so we didn\u2019t use game engine\u2019s capabilities to create them (except key pressing detection). For each of them we just draw pixels over relatively small canvas. So that was an interesting challenge inside a challenge - creating playable piece of\u2026code with just plain old HTML5 canvas. And insert it inside Phaser.js game \ud83d\ude03\n\nHere is \u00abcatch the container\u00bb minigame.\n![minigame2.gif](\/\/\/raw\/4e1\/z\/88df.gif)\nAnd here is how its code looks like - pretty small, I think.\n![Listing.png](\/\/\/raw\/4e1\/z\/88e3.png)\n\nSo this is how they done. Good luck and remember - potatoes are rich in calories, don\u2019t hesitate to throw it into furnace!\n\n[![tutor1.gif](\/\/\/raw\/4e1\/z\/88e4.gif)](https:\/\/ldjam.com\/events\/ludum-dare\/39\/galvanica) ","title":"(\"game\" in game) === true","wayback_source":[]}