{"id":4205,"date":"2019-07-31T16:40:21","date_gmt":"2019-07-31T23:40:21","guid":{"rendered":"http:\/\/www.nathalielawhead.com\/candybox\/?p=4205"},"modified":"2021-03-24T14:36:22","modified_gmt":"2021-03-24T21:36:22","slug":"the-electric-zine-maker-website-is-up","status":"publish","type":"post","link":"https:\/\/www.nathalielawhead.com\/candybox\/the-electric-zine-maker-website-is-up","title":{"rendered":"The Electric Zine Maker website is up!"},"content":{"rendered":"<p>This last week or so I&#8217;ve been neck deep in building the website for the <a href=\"https:\/\/alienmelon.itch.io\/electric-zine-maker\" rel=\"noopener noreferrer\" target=\"_blank\">Electric Zine Maker<\/a>. At this point in development it seemed like a good idea to make it because I need to write people about it, and sharing just the itch page seemed boring&#8230; so here it is.<\/p>\n<p>I think it worked out wonderfully. It&#8217;s very interesting!<\/p>\n<p>LINK: <a href=\"http:\/\/unicornycopia.com\/ezm\/\" rel=\"noopener noreferrer\" target=\"_blank\">http:\/\/unicornycopia.com\/ezm\/<\/a><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/nathalielawhead.com\/noodles\/EZM_SITE_01.png\" alt=\"\" \/><\/p>\n<p>It&#8217;s part of the <a href=\"http:\/\/unicornycopia.com\/\" rel=\"noopener noreferrer\" target=\"_blank\">Unicornycopia<\/a> webring :) Yes, I&#8217;m viewing it as that now. All my games have a website, and it&#8217;s kind of cute to think of it that way.<br \/>\nWith making these sites, especially this one, I&#8217;m really trying to keep it unique. I don&#8217;t want it to be just a website that you scroll through. I want it to be strange, interesting, special&#8230;<br \/>\nIn this case there&#8217;s a lot of physics. It&#8217;s a cute idea. Website that has physics. So pages can fall apart, or get destroyed.<br \/>\nIn the main page, you can throw the rocks at the nav and it falls apart.<br \/>\nHaving collision detection AND physics on divs is interesting. I wouldn&#8217;t say it was hard, but getting it to work across as many browsers and device conditions as possible was hard. I did have to end up cutting back on some things that I wanted because of Safari.<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/nathalielawhead.com\/noodles\/EZM_SITE_02.png\" alt=\"\" \/><\/p>\n<p><a href=\"https:\/\/github.com\/liabru\/matter-js\" rel=\"noopener noreferrer\" target=\"_blank\">Physics is done with Matter.js<\/a>. It&#8217;s wonderful, and worth looking at if you don&#8217;t know about it already.<\/p>\n<p>In case it&#8217;s of value to anyone, here&#8217;s the collision code&#8230;<\/p>\n<p><!-- HTML generated using hilite.me --><\/p>\n<div style=\"background: #ffffff; overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;\">\n<pre style=\"margin: 0; line-height: 125%\">hitTest <span style=\"color: #333333\">=<\/span> <span style=\"color: #008800; font-weight: bold\">function<\/span>(a, b){\r\n\t<span style=\"color: #888888\">\/\/<\/span>\r\n\t<span style=\"color: #008800; font-weight: bold\">var<\/span> circleRect <span style=\"color: #333333\">=<\/span> a.getBoundingClientRect();\r\n\t<span style=\"color: #008800; font-weight: bold\">var<\/span> squareRect <span style=\"color: #333333\">=<\/span> b.getBoundingClientRect();\r\n\t<span style=\"color: #008800; font-weight: bold\">var<\/span> b_width <span style=\"color: #333333\">=<\/span> squareRect.width;\r\n\t<span style=\"color: #008800; font-weight: bold\">var<\/span> b_height <span style=\"color: #333333\">=<\/span> squareRect.height;\r\n\t<span style=\"color: #008800; font-weight: bold\">var<\/span> a_height <span style=\"color: #333333\">=<\/span> circleRect.height;\r\n\t<span style=\"color: #008800; font-weight: bold\">var<\/span> a_width <span style=\"color: #333333\">=<\/span> circleRect.width;\r\n\t<span style=\"color: #888888\">\/\/<\/span>\r\n\taPos <span style=\"color: #333333\">=<\/span> {x<span style=\"color: #333333\">:<\/span>circleRect.left, y<span style=\"color: #333333\">:<\/span>circleRect.top};\r\n\tbPos <span style=\"color: #333333\">=<\/span> {x<span style=\"color: #333333\">:<\/span>squareRect.left, y<span style=\"color: #333333\">:<\/span>squareRect.top};\r\n\t<span style=\"color: #888888\">\/\/<\/span>\r\n\t<span style=\"color: #008800; font-weight: bold\">return<\/span> aPos.x <span style=\"color: #333333\">&lt;<\/span> bPos.x <span style=\"color: #333333\">+<\/span> b_width <span style=\"color: #333333\">&amp;&amp;<\/span> aPos.x <span style=\"color: #333333\">+<\/span> a_width <span style=\"color: #333333\">&gt;<\/span> bPos.x <span style=\"color: #333333\">&amp;&amp;<\/span> aPos.y <span style=\"color: #333333\">&lt;<\/span> bPos.y <span style=\"color: #333333\">+<\/span> b_height <span style=\"color: #333333\">&amp;&amp;<\/span> aPos.y <span style=\"color: #333333\">+<\/span> a_height <span style=\"color: #333333\">&gt;<\/span> bPos.y;\r\n}\r\n<\/pre>\n<\/div>\n<p>it returns true or false&#8230;<\/p>\n<p>I also have a lot more things like this on my github, if that&#8217;s of interest: <a href=\"https:\/\/github.com\/alienmelon\" rel=\"noopener noreferrer\" target=\"_blank\">https:\/\/github.com\/alienmelon<\/a><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/nathalielawhead.com\/noodles\/EZM_SITE_03.png\" alt=\"\" \/><\/p>\n<p>Overall, I love the idea of using a website as a breakable object (pun kinda intended).<br \/>\nIt&#8217;s not so much of a page, it leans in the direction of an environment. I feel like UI in general would be more interesting if people viewed it as an ENVIRONMENT rather than a plain two dimensional thing. When devs get into UI development a lot of complaints I hear about it lean in the direction of it being tedious and boring&#8230; I feel like this is a talk for another time, but really. Look at it as a living, breathing environment (like more world building) and UI work starts being very different.<\/p>\n<p>In recent work, this Electric Zine Maker website is the second site that I&#8217;m most proud of. The one that I really love is <a href=\"http:\/\/alienmelon.com\/\" rel=\"noopener noreferrer\" target=\"_blank\">alienmelon.com<\/a>&#8230; That&#8217;s treating a website as if it was a game, using div&#8217;s more interactively and specifically. You navigate a little ghost from page to page.<br \/>\nThat one is fun and also works on mobile.<br \/>\n&#8220;Works on mobile&#8221; has become my favorite selling point when doing it. Getting anything unusual to function in that environment seems like an accomplishment.<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/nathalielawhead.com\/noodles\/eigtbok01.png\" alt=\"\" \/><br \/>\n<img decoding=\"async\" src=\"http:\/\/nathalielawhead.com\/noodles\/lovestory1_02.png\" alt=\"\" \/><br \/>\n<img decoding=\"async\" src=\"http:\/\/nathalielawhead.com\/noodles\/graveyard03.png\" alt=\"\" \/><\/p>\n<p>In other web dev related news&#8230;<br \/>\nI just <a href=\"https:\/\/alienmelon.itch.io\/allthemes\" rel=\"noopener noreferrer\" target=\"_blank\">posted all the CSS for my itch.io game pages<\/a>. I&#8217;m sharing the CSS for any page that looks fancy. You can get the theme for &#8220;<a href=\"https:\/\/alienmelon.itch.io\/everything-is-going-to-be-ok\" rel=\"noopener noreferrer\" target=\"_blank\">Everything is going to be ok<\/a>&#8220;, <a href=\"https:\/\/alienmelon.itch.io\/lovestory\" rel=\"noopener noreferrer\" target=\"_blank\">A_DESKTOP_LOVE_STORY<\/a>, <a href=\"https:\/\/alienmelon.itch.io\/electric-file-monitor\" rel=\"noopener noreferrer\" target=\"_blank\">Electric File Monitor<\/a>, <a href=\"https:\/\/alienmelon.itch.io\/f2oggy\" rel=\"noopener noreferrer\" target=\"_blank\">F2OGGY<\/a>&#8230;<br \/>\nJust copy and paste the CSS.<br \/>\nPeople occasionally ask about it, and it seems like the kind of thing you should share. CSS is one of the simplest things for me to do. It&#8217;s a bit like a relaxation exercise for me when I don&#8217;t want to do things that involve a lot of thinking, so it&#8217;s fun to share it around.<br \/>\nHere&#8217;s the LINK: <a href=\"https:\/\/alienmelon.itch.io\/allthemes\" rel=\"noopener noreferrer\" target=\"_blank\">https:\/\/alienmelon.itch.io\/allthemes<\/a><\/p>\n<p>&#8230;Ok this is a short post. I&#8217;m exhausted lol. <a href=\"http:\/\/unicornycopia.com\/ezm\/\" rel=\"noopener noreferrer\" target=\"_blank\">Please check it out it&#8217;s so worth it<\/a>!!! :D<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This last week or so I&#8217;ve been neck deep in building the website for the Electric Zine Maker. At this point in development it seemed like a good idea to make it because I need to write people about it, and sharing just the itch page seemed boring&#8230; so here it is. I think it worked out wonderfully. It&#8217;s very interesting! LINK: http:\/\/unicornycopia.com\/ezm\/ It&#8217;s part of the Unicornycopia webring :) Yes, I&#8217;m viewing it as that now. All my games have a website, and it&#8217;s kind of cute to think of it that way. With making these sites, especially this&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":4808,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"http:\/\/nathalielawhead.com\/noodles\/EZM_SITE_01.png","fifu_image_alt":"The Electric Zine Maker website is up!","footnotes":"","_links_to":"","_links_to_target":""},"categories":[30],"tags":[],"class_list":["post-4205","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-games"],"_links":{"self":[{"href":"https:\/\/www.nathalielawhead.com\/candybox\/wp-json\/wp\/v2\/posts\/4205","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.nathalielawhead.com\/candybox\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nathalielawhead.com\/candybox\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nathalielawhead.com\/candybox\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nathalielawhead.com\/candybox\/wp-json\/wp\/v2\/comments?post=4205"}],"version-history":[{"count":6,"href":"https:\/\/www.nathalielawhead.com\/candybox\/wp-json\/wp\/v2\/posts\/4205\/revisions"}],"predecessor-version":[{"id":4211,"href":"https:\/\/www.nathalielawhead.com\/candybox\/wp-json\/wp\/v2\/posts\/4205\/revisions\/4211"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.nathalielawhead.com\/candybox\/wp-json\/wp\/v2\/media\/4808"}],"wp:attachment":[{"href":"https:\/\/www.nathalielawhead.com\/candybox\/wp-json\/wp\/v2\/media?parent=4205"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nathalielawhead.com\/candybox\/wp-json\/wp\/v2\/categories?post=4205"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nathalielawhead.com\/candybox\/wp-json\/wp\/v2\/tags?post=4205"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}