{"author_link":"\/users\/pschichtel","author_name":"pschichtel","author_uid":"pschichtel","comments":[],"epoch":1601989325,"event":"LD47","format":"md","ldjam_node_id":228890,"likes":10,"metadata":{"p_key":"150089","p_author":"pschichtel","p_authorkey":"1000302","p_urlkey":"366588","p_title":"Publish for Web!","p_cat":"LDJam ","p_event":"LD47","p_time":"1601989325","p_likes":"10","p_comments":"0","p_status":"WAYBACK","us_key":"1000302","us_name":"pschichtel","us_username":"pschichtel","event_start":"1601596800","event_key":"76","event_name":"Ludum Dare 47"},"node":{"_collation":{"body_sanitizer":"TextUtils::SanitizeHTML via existing importer","event":"LD47","removed_author":false},"_superparent":212256,"_trust":3,"author":302,"body":"Come on everyone, publish your games to the web.\n\nPersonally, I will not play games that only provide binary downloads.\n\n1. Most games don't publish for my OS (Linux), which is fine, I guess most of you are on Windows\n2. Binaries are kinda untrustworthy. I've seen several games that produce (**probably** false-positive) anti virus warnings on Windows systems.\n3. Most games do not publish sources, at least not directly in the ldjam page.\n\nI **will** play native binaries iff the web version or the screenshots really hooked me and the native version promises some enhancements (usually better performance or controls).\n\nPublishing for the web is pretty easy in probably all commonly used game engines (Unity, Unreal, Godot, LibGDX, ...).\n\nFor Unity you might need to disable compression in the web player settings before exporting (there are known bugs around it), but other than that it's just:\n\n1. Install web publishing support, if not already (in the Hub: \"Add Modules\" on the installation)\n2. Go to build settings\n3. Select WebGL\n4. Click Switch Platform\n5. Click Build, Select a Folder\n6. done.\n\nIt takes a bit longer than a native export, but it should generally work. If you are using UnityEditor classes (Handles and Gizmozs probably), you need to wrap them in `#if UNITY_EDITOR` `#endif` blocks or move the code to separate classes in the Assets\/Editor folder, but the export errors are fairly clear on that.\n\n\"But where can I upload the export then?\" you might ask.\n\nI wrote a post about that for LD 38: https:\/\/ldjam.com\/events\/ludum-dare\/38\/where-is-mommy\/submit-for-all-the-platforms\n\nWe at Banana4Life host our code in Github, so its natural to host the web export on corresponding Github Pages in the same repository as the source. Recently Github changed it, so Pages are not enabled automatically, when you push the \"gh-pages\" branch. You can now use any branch, but you have to enable Pages in the repository settings by selecting a branch and root directory.\n","comments":14,"comments-timestamp":"2020-10-08T04:05:53Z","created":"2020-10-06T12:39:38Z","files":[],"files-timestamp":0,"id":228890,"love":10,"love-timestamp":"2020-10-06T16:24:56Z","meta":[],"modified":"2020-10-08T04:05:53Z","name":"Publish for Web!","node-timestamp":"2020-10-06T13:04:40Z","parent":225882,"parents":[1,5,9,212256,225882],"path":"\/events\/ludum-dare\/47\/legendary-orbit-golf\/publish-for-web","published":"2020-10-06T13:02:05Z","scope":"public","slug":"publish-for-web","subsubtype":"","subtype":"","type":"post","version":694407},"node_metadata":{"n_key":"228890","n_urlkey":"366588","n_parent":"225882","n_path":"\/events\/ludum-dare\/47\/legendary-orbit-golf\/publish-for-web","n_slug":"publish-for-web","n_type":"post","n_subtype":"","n_subsubtype":"","n_author":"302","n_created":"1601987978","n_modified":"1602129953","n_version":"694407","n_status":"WAYBACK"},"source_url":"https:\/\/ldjam.com\/events\/ludum-dare\/47\/legendary-orbit-golf\/publish-for-web","text":"Come on everyone, publish your games to the web.\n\nPersonally, I will not play games that only provide binary downloads.\n\n1. Most games don't publish for my OS (Linux), which is fine, I guess most of you are on Windows\n2. Binaries are kinda untrustworthy. I've seen several games that produce (**probably** false-positive) anti virus warnings on Windows systems.\n3. Most games do not publish sources, at least not directly in the ldjam page.\n\nI **will** play native binaries iff the web version or the screenshots really hooked me and the native version promises some enhancements (usually better performance or controls).\n\nPublishing for the web is pretty easy in probably all commonly used game engines (Unity, Unreal, Godot, LibGDX, ...).\n\nFor Unity you might need to disable compression in the web player settings before exporting (there are known bugs around it), but other than that it's just:\n\n1. Install web publishing support, if not already (in the Hub: \"Add Modules\" on the installation)\n2. Go to build settings\n3. Select WebGL\n4. Click Switch Platform\n5. Click Build, Select a Folder\n6. done.\n\nIt takes a bit longer than a native export, but it should generally work. If you are using UnityEditor classes (Handles and Gizmozs probably), you need to wrap them in `#if UNITY_EDITOR` `#endif` blocks or move the code to separate classes in the Assets\/Editor folder, but the export errors are fairly clear on that.\n\n\"But where can I upload the export then?\" you might ask.\n\nI wrote a post about that for LD 38: https:\/\/ldjam.com\/events\/ludum-dare\/38\/where-is-mommy\/submit-for-all-the-platforms\n\nWe at Banana4Life host our code in Github, so its natural to host the web export on corresponding Github Pages in the same repository as the source. Recently Github changed it, so Pages are not enabled automatically, when you push the \"gh-pages\" branch. You can now use any branch, but you have to enable Pages in the repository settings by selecting a branch and root directory.\n","title":"Publish for Web!","wayback_source":[]}