{"id":1238,"date":"2021-11-18T18:30:31","date_gmt":"2021-11-18T23:30:31","guid":{"rendered":"https:\/\/openlab.bmcc.cuny.edu\/mmp-270-fall-2021\/?p=1238"},"modified":"2021-11-18T18:30:31","modified_gmt":"2021-11-18T23:30:31","slug":"enemies-leighton-snyder","status":"publish","type":"post","link":"https:\/\/openlab.bmcc.cuny.edu\/mmp-270-fall-2021\/2021\/11\/18\/enemies-leighton-snyder\/","title":{"rendered":"Enemies &#8211; Leighton Snyder"},"content":{"rendered":"\n<p>Definitely a lot going on in this lab. I think for the game I had in mind, I will probably rework some things, since the combat will mostly be ranged, but I was able to get everything working that was covered in the lab.<br><br>A weird blip was that after adding the stay_on_platform functionality, enemies without that check wouldn&#8217;t turning when hitting a wall. So I separated the wall collision part from the stay_on_platform argument:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1023\" height=\"418\" src=\"https:\/\/openlab.bmcc.cuny.edu\/mmp-270-fall-2021\/wp-content\/uploads\/sites\/1770\/2021\/11\/image-4.png\" alt=\"\" class=\"wp-image-1239\" srcset=\"https:\/\/openlab.bmcc.cuny.edu\/mmp-270-fall-2021\/wp-content\/uploads\/sites\/1770\/2021\/11\/image-4.png 1023w, https:\/\/openlab.bmcc.cuny.edu\/mmp-270-fall-2021\/wp-content\/uploads\/sites\/1770\/2021\/11\/image-4-300x123.png 300w, https:\/\/openlab.bmcc.cuny.edu\/mmp-270-fall-2021\/wp-content\/uploads\/sites\/1770\/2021\/11\/image-4-768x314.png 768w\" sizes=\"auto, (max-width: 1023px) 100vw, 1023px\" \/><figcaption>Probably a prettier way to do it, but this ended up working.<\/figcaption><\/figure>\n\n\n\n<p>Here it is all together:<\/p>\n\n\n\n<figure class=\"wp-block-video\"><video controls src=\"https:\/\/openlab.bmcc.cuny.edu\/mmp-270-fall-2021\/wp-content\/uploads\/sites\/1770\/2021\/11\/enemies.mp4\"><\/video><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Definitely a lot going on in this lab. I think for the game I had in mind, I will probably rework some things, since the combat will mostly be ranged, but I was able to get everything working that was covered in the lab. A weird blip was that after adding the stay_on_platform functionality, enemies&hellip; <a class=\"more-link\" href=\"https:\/\/openlab.bmcc.cuny.edu\/mmp-270-fall-2021\/2021\/11\/18\/enemies-leighton-snyder\/\">Continue reading <span class=\"screen-reader-text\">Enemies &#8211; Leighton Snyder<\/span><\/a><\/p>\n","protected":false},"author":4194,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"portfolio_post_id":0,"portfolio_citation":"","portfolio_annotation":"","openlab_post_visibility":"","footnotes":""},"categories":[43,77],"tags":[],"coauthors":[23],"class_list":["post-1238","post","type-post","status-publish","format-standard","hentry","category-developer","category-enemies","entry"],"_links":{"self":[{"href":"https:\/\/openlab.bmcc.cuny.edu\/mmp-270-fall-2021\/wp-json\/wp\/v2\/posts\/1238","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/openlab.bmcc.cuny.edu\/mmp-270-fall-2021\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/openlab.bmcc.cuny.edu\/mmp-270-fall-2021\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/openlab.bmcc.cuny.edu\/mmp-270-fall-2021\/wp-json\/wp\/v2\/users\/4194"}],"replies":[{"embeddable":true,"href":"https:\/\/openlab.bmcc.cuny.edu\/mmp-270-fall-2021\/wp-json\/wp\/v2\/comments?post=1238"}],"version-history":[{"count":1,"href":"https:\/\/openlab.bmcc.cuny.edu\/mmp-270-fall-2021\/wp-json\/wp\/v2\/posts\/1238\/revisions"}],"predecessor-version":[{"id":1241,"href":"https:\/\/openlab.bmcc.cuny.edu\/mmp-270-fall-2021\/wp-json\/wp\/v2\/posts\/1238\/revisions\/1241"}],"wp:attachment":[{"href":"https:\/\/openlab.bmcc.cuny.edu\/mmp-270-fall-2021\/wp-json\/wp\/v2\/media?parent=1238"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/openlab.bmcc.cuny.edu\/mmp-270-fall-2021\/wp-json\/wp\/v2\/categories?post=1238"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/openlab.bmcc.cuny.edu\/mmp-270-fall-2021\/wp-json\/wp\/v2\/tags?post=1238"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/openlab.bmcc.cuny.edu\/mmp-270-fall-2021\/wp-json\/wp\/v2\/coauthors?post=1238"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}