{"id":103,"date":"2021-05-06T05:21:04","date_gmt":"2021-05-06T05:21:04","guid":{"rendered":"https:\/\/msc-ai.knipmeyer.co.uk\/?p=103"},"modified":"2021-05-06T05:21:04","modified_gmt":"2021-05-06T05:21:04","slug":"food-drink","status":"publish","type":"post","link":"http:\/\/msc-ai.knipmeyer.co.uk\/index.php\/2021\/05\/06\/food-drink\/","title":{"rendered":"Food &#038; Drink"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Our Hero in game-play will have an energy bar, ranging from 0 to 100. When encountering monsters, energy will be reduced. Some designs of the map will require the hero to face the monsters and energy to be lessened, as there will be no power-up available to kill the monster.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">With this placement of food and drink will have tactical positions so our hero can progress thruout the maze. For this the maze designer has food and drink buttons and associated breeds and procedures to support them. As no graphics for food or drink existed, these were created in the designer.<\/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=\"1024\" height=\"957\" src=\"http:\/\/msc-ai.knipmeyer.co.uk\/wp-content\/uploads\/2021\/05\/food-1024x957.jpg\" alt=\"\" data-id=\"106\" data-full-url=\"http:\/\/msc-ai.knipmeyer.co.uk\/wp-content\/uploads\/2021\/05\/food.jpg\" data-link=\"https:\/\/msc-ai.knipmeyer.co.uk\/food\/\" class=\"wp-image-106\" srcset=\"http:\/\/msc-ai.knipmeyer.co.uk\/wp-content\/uploads\/2021\/05\/food-1024x957.jpg 1024w, http:\/\/msc-ai.knipmeyer.co.uk\/wp-content\/uploads\/2021\/05\/food-300x280.jpg 300w, http:\/\/msc-ai.knipmeyer.co.uk\/wp-content\/uploads\/2021\/05\/food-768x718.jpg 768w, http:\/\/msc-ai.knipmeyer.co.uk\/wp-content\/uploads\/2021\/05\/food-321x300.jpg 321w, http:\/\/msc-ai.knipmeyer.co.uk\/wp-content\/uploads\/2021\/05\/food.jpg 1248w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"blocks-gallery-item__caption\">tasty chicken<\/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\/drink-1024x965.jpg\" alt=\"\" data-id=\"105\" data-full-url=\"http:\/\/msc-ai.knipmeyer.co.uk\/wp-content\/uploads\/2021\/05\/drink.jpg\" data-link=\"https:\/\/msc-ai.knipmeyer.co.uk\/drink\/\" class=\"wp-image-105\" srcset=\"http:\/\/msc-ai.knipmeyer.co.uk\/wp-content\/uploads\/2021\/05\/drink-1024x965.jpg 1024w, http:\/\/msc-ai.knipmeyer.co.uk\/wp-content\/uploads\/2021\/05\/drink-300x283.jpg 300w, http:\/\/msc-ai.knipmeyer.co.uk\/wp-content\/uploads\/2021\/05\/drink-768x724.jpg 768w, http:\/\/msc-ai.knipmeyer.co.uk\/wp-content\/uploads\/2021\/05\/drink-318x300.jpg 318w, http:\/\/msc-ai.knipmeyer.co.uk\/wp-content\/uploads\/2021\/05\/drink.jpg 1248w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"blocks-gallery-item__caption\">refreshing beer<\/figcaption><\/figure><\/li><\/ul><figcaption class=\"blocks-gallery-caption\">food and drink in designer<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Because more than one food or drink is required, these are not created on &#8216;setup&#8217; when the level is created, instead when the tool is selected and the mouse clicked, the patch is queried and when black, i.e. empty, a food or drink item is sprouted, i.e.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>to place-food\n  ask patch (round mouse-xcor) (round mouse-ycor)\n  &#91;\n    ifelse pcolor != black\n    &#91; user-message \"You cannot place food on top of other objects.\" ]\n    &#91;\n      if not any? turtles-here\n      &#91;\n        sprout-foods 1\n        &#91;\n          set color brown\n          set shape \"food\"\n        ]\n        set treasures-grid? true\n        set pcolor black\n      ]\n    ]\n  ]\nend<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">I can now create food and drink for our hero to battle our monsters and dragon !<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"964\" height=\"674\" src=\"https:\/\/msc-ai.knipmeyer.co.uk\/wp-content\/uploads\/2021\/05\/image-28.png\" alt=\"\" class=\"wp-image-104\" srcset=\"http:\/\/msc-ai.knipmeyer.co.uk\/wp-content\/uploads\/2021\/05\/image-28.png 964w, http:\/\/msc-ai.knipmeyer.co.uk\/wp-content\/uploads\/2021\/05\/image-28-300x210.png 300w, http:\/\/msc-ai.knipmeyer.co.uk\/wp-content\/uploads\/2021\/05\/image-28-768x537.png 768w, http:\/\/msc-ai.knipmeyer.co.uk\/wp-content\/uploads\/2021\/05\/image-28-429x300.png 429w\" sizes=\"auto, (max-width: 964px) 100vw, 964px\" \/><figcaption>tasty chicken wings and beer for our heroes health<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Our Hero in game-play will have an energy bar, ranging from 0 to 100. When encountering monsters, energy will be reduced. Some designs of the map will require the hero to face the monsters and energy to be lessened, as &hellip; <a href=\"http:\/\/msc-ai.knipmeyer.co.uk\/index.php\/2021\/05\/06\/food-drink\/\">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-103","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\/103","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=103"}],"version-history":[{"count":1,"href":"http:\/\/msc-ai.knipmeyer.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/103\/revisions"}],"predecessor-version":[{"id":107,"href":"http:\/\/msc-ai.knipmeyer.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/103\/revisions\/107"}],"wp:attachment":[{"href":"http:\/\/msc-ai.knipmeyer.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=103"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/msc-ai.knipmeyer.co.uk\/index.php\/wp-json\/wp\/v2\/categories?post=103"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/msc-ai.knipmeyer.co.uk\/index.php\/wp-json\/wp\/v2\/tags?post=103"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}