{"id":1904,"date":"2015-09-19T18:28:28","date_gmt":"2015-09-19T09:28:28","guid":{"rendered":"http:\/\/www.codedojo.com\/?p=1904"},"modified":"2019-03-02T10:32:40","modified_gmt":"2019-03-02T01:32:40","slug":"that-old-game-dink-smallwood-is-now-playable-in-a-browser","status":"publish","type":"post","link":"https:\/\/www.codedojo.com\/?p=1904","title":{"rendered":"That old game Dink Smallwood is now playable in a browser!"},"content":{"rendered":"<p>Here is the full version of the RPG\u00a0Dink Smallwood playable in desktop Chrome\/Firefox by using Proton&#8217;s emscripten html5 export:<\/p>\n<p><a href=\"http:\/\/www.codedojo.com\/wp-content\/uploads\/2015\/09\/dink_html5.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1905\" src=\"https:\/\/www.codedojo.com\/wp-content\/uploads\/2015\/09\/dink_html5.jpg\" alt=\"dink_html5\" width=\"700\" height=\"571\" srcset=\"https:\/\/www.codedojo.com\/wp-content\/uploads\/2015\/09\/dink_html5.jpg 700w, https:\/\/www.codedojo.com\/wp-content\/uploads\/2015\/09\/dink_html5-300x245.jpg 300w, https:\/\/www.codedojo.com\/wp-content\/uploads\/2015\/09\/dink_html5-624x509.jpg 624w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/rtsoft.com\/html5\/DinkSmallwoodWeb.html\">Play it here!<\/a>\u00a0(Note: that is an outdated version, a much better version is now <a href=\"https:\/\/www.rtsoft.com\/web\/dink\/\">available here<\/a>)<\/p>\n<p>It&#8217;s not perfect, here is what&#8217;s wrong with it\/missing:<\/p>\n<ul>\n<li>No midi playback. \u00a0The fake SDL audio wrapper can&#8217;t handle it I guess although I didn&#8217;t really even try. \u00a0Anyone know a easy way to play Midi via emscripten? \u00a0All the CD audio does play though.<\/li>\n<li>While save\/load quicksave\/quickload all work perfectly, nothing is actually saved if you close your browser window. \u00a0It&#8217;s possible but requires some async save\/loading I didn&#8217;t feel like dealing with right now. \u00a0But this means don&#8217;t really play the game, you&#8217;ll lose everything!<\/li>\n<li>The in-game DMOD download and install system amazingly does work, but only with Mystery Island because that dmod is hosted on the same domain. \u00a0It isn&#8217;t saved when the browser closes<\/li>\n<li>No gamepad support<\/li>\n<li>It&#8217;s big, it&#8217;s like a 40-50 mb download (not sure how well the web compression works) and has no loading bar during the initial load. \u00a0Wish emscripten&#8217;s .html maker would include one! \u00a0Anybody know how to add one easy? Maybe I should actually learn javascript someday.<\/li>\n<li>Very unlikely it works on iOS Safari, only actually tested with Chrome on Windows<\/li>\n<\/ul>\n<p>It&#8217;s an early step,\u00a0but it&#8217;s very possible to setup some kind of system where you could click on any of the 300+ dmods on Dink Network and have them be (near) instantly playable right there in your browser.<\/p>\n<p>Here&#8217;s another old game of mine exported to html5 with emscripten, <a href=\"http:\/\/rtsoft.com\/html5\/DungeonScrollWeb.html\">Dungeon Scroll<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here is the full version of the RPG\u00a0Dink Smallwood playable in desktop Chrome\/Firefox by using Proton&#8217;s emscripten html5 export: Play it here!\u00a0(Note: that is an outdated version, a much better version is now available here) It&#8217;s not perfect, here is what&#8217;s wrong with it\/missing: No midi playback. \u00a0The fake SDL audio wrapper can&#8217;t handle it [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,12],"tags":[],"class_list":["post-1904","post","type-post","status-publish","format-standard","hentry","category-development","category-dink"],"_links":{"self":[{"href":"https:\/\/www.codedojo.com\/index.php?rest_route=\/wp\/v2\/posts\/1904","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.codedojo.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.codedojo.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.codedojo.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.codedojo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1904"}],"version-history":[{"count":7,"href":"https:\/\/www.codedojo.com\/index.php?rest_route=\/wp\/v2\/posts\/1904\/revisions"}],"predecessor-version":[{"id":2421,"href":"https:\/\/www.codedojo.com\/index.php?rest_route=\/wp\/v2\/posts\/1904\/revisions\/2421"}],"wp:attachment":[{"href":"https:\/\/www.codedojo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1904"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.codedojo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1904"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.codedojo.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1904"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}