{"id":108,"date":"2021-05-06T05:42:12","date_gmt":"2021-05-06T05:42:12","guid":{"rendered":"https:\/\/msc-ai.knipmeyer.co.uk\/?p=108"},"modified":"2021-05-06T05:42:12","modified_gmt":"2021-05-06T05:42:12","slug":"the-dragon","status":"publish","type":"post","link":"http:\/\/msc-ai.knipmeyer.co.uk\/index.php\/2021\/05\/06\/the-dragon\/","title":{"rendered":"The Dragon !"},"content":{"rendered":"\n<p>Our &#8216;end level&#8217; monster in the maze will the scary dragon. The Dragon will guard the final red key to exit the game. To defeat the dragon it will require maxium health and a power-up pill at the same time, so timing is critical &#8211; placement of these will ensure that it will be challenging, but not impossible.<\/p>\n\n\n\n<p>Firstly, there was no dragon icon, so i created one. I found a knitting patten to copy as these are quite &#8216;blocky&#8217; like the graphic editor.<\/p>\n\n\n\n<figure class=\"wp-block-gallery columns-2 is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\"><ul class=\"blocks-gallery-grid\"><li class=\"blocks-gallery-item\"><figure><img loading=\"lazy\" decoding=\"async\" width=\"802\" height=\"860\" src=\"http:\/\/msc-ai.knipmeyer.co.uk\/wp-content\/uploads\/2021\/05\/dragon_knitting.jpg\" alt=\"\" data-id=\"110\" data-full-url=\"http:\/\/msc-ai.knipmeyer.co.uk\/wp-content\/uploads\/2021\/05\/dragon_knitting.jpg\" data-link=\"https:\/\/msc-ai.knipmeyer.co.uk\/dragon_knitting\/\" class=\"wp-image-110\" srcset=\"http:\/\/msc-ai.knipmeyer.co.uk\/wp-content\/uploads\/2021\/05\/dragon_knitting.jpg 802w, http:\/\/msc-ai.knipmeyer.co.uk\/wp-content\/uploads\/2021\/05\/dragon_knitting-280x300.jpg 280w, http:\/\/msc-ai.knipmeyer.co.uk\/wp-content\/uploads\/2021\/05\/dragon_knitting-768x824.jpg 768w\" sizes=\"auto, (max-width: 802px) 100vw, 802px\" \/><figcaption class=\"blocks-gallery-item__caption\">dragon patten<\/figcaption><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"965\" src=\"http:\/\/msc-ai.knipmeyer.co.uk\/wp-content\/uploads\/2021\/05\/dragon-netlogo-shape-1024x965.jpg\" alt=\"\" data-id=\"109\" data-full-url=\"http:\/\/msc-ai.knipmeyer.co.uk\/wp-content\/uploads\/2021\/05\/dragon-netlogo-shape.jpg\" data-link=\"https:\/\/msc-ai.knipmeyer.co.uk\/dragon-netlogo-shape\/\" class=\"wp-image-109\" srcset=\"http:\/\/msc-ai.knipmeyer.co.uk\/wp-content\/uploads\/2021\/05\/dragon-netlogo-shape-1024x965.jpg 1024w, http:\/\/msc-ai.knipmeyer.co.uk\/wp-content\/uploads\/2021\/05\/dragon-netlogo-shape-300x283.jpg 300w, http:\/\/msc-ai.knipmeyer.co.uk\/wp-content\/uploads\/2021\/05\/dragon-netlogo-shape-768x724.jpg 768w, http:\/\/msc-ai.knipmeyer.co.uk\/wp-content\/uploads\/2021\/05\/dragon-netlogo-shape-318x300.jpg 318w, http:\/\/msc-ai.knipmeyer.co.uk\/wp-content\/uploads\/2021\/05\/dragon-netlogo-shape.jpg 1252w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"blocks-gallery-item__caption\">dragon netlogo<\/figcaption><\/figure><\/li><\/ul><figcaption class=\"blocks-gallery-caption\">the dragon icon<\/figcaption><\/figure>\n\n\n\n<p>Creating a button and associated code was an iteration of the key placements<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>breed &#91; dragons dragon ]\n;\n    if tool = \"Place Dragon\"\n    &#91; place-dragon]\n;\nto place-dragon\n  ifelse &#91;pcolor] of patch round mouse-xcor mouse-ycor != black\n  &#91; user-message \"You must place the key on a corridor space, not a wall or a gate.\" ]\n  &#91;\n    ask dragons\n    &#91; setxy (round mouse-xcor) (round mouse-ycor) ]\n  ]\nend<\/code><\/pre>\n\n\n\n<p>Whereby i was able to add the dragon to the designer<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"836\" height=\"750\" src=\"https:\/\/msc-ai.knipmeyer.co.uk\/wp-content\/uploads\/2021\/05\/image-29.png\" alt=\"\" class=\"wp-image-111\" srcset=\"http:\/\/msc-ai.knipmeyer.co.uk\/wp-content\/uploads\/2021\/05\/image-29.png 836w, http:\/\/msc-ai.knipmeyer.co.uk\/wp-content\/uploads\/2021\/05\/image-29-300x269.png 300w, http:\/\/msc-ai.knipmeyer.co.uk\/wp-content\/uploads\/2021\/05\/image-29-768x689.png 768w, http:\/\/msc-ai.knipmeyer.co.uk\/wp-content\/uploads\/2021\/05\/image-29-334x300.png 334w\" sizes=\"auto, (max-width: 836px) 100vw, 836px\" \/><figcaption>dragon added to editor and placed<\/figcaption><\/figure>\n\n\n\n<p>Whilst the images currently look quite small, this will be corrected when the &#8216;setup&#8217; adjust the world and patch sizes so they become more visable.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Our &#8216;end level&#8217; monster in the maze will the scary dragon. The Dragon will guard the final red key to exit the game. To defeat the dragon it will require maxium health and a power-up pill at the same time, &hellip; <a href=\"http:\/\/msc-ai.knipmeyer.co.uk\/index.php\/2021\/05\/06\/the-dragon\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-108","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/msc-ai.knipmeyer.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/108","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/msc-ai.knipmeyer.co.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/msc-ai.knipmeyer.co.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/msc-ai.knipmeyer.co.uk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/msc-ai.knipmeyer.co.uk\/index.php\/wp-json\/wp\/v2\/comments?post=108"}],"version-history":[{"count":1,"href":"http:\/\/msc-ai.knipmeyer.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/108\/revisions"}],"predecessor-version":[{"id":112,"href":"http:\/\/msc-ai.knipmeyer.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/108\/revisions\/112"}],"wp:attachment":[{"href":"http:\/\/msc-ai.knipmeyer.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=108"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/msc-ai.knipmeyer.co.uk\/index.php\/wp-json\/wp\/v2\/categories?post=108"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/msc-ai.knipmeyer.co.uk\/index.php\/wp-json\/wp\/v2\/tags?post=108"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}