{"id":87,"date":"2021-05-05T13:10:51","date_gmt":"2021-05-05T13:10:51","guid":{"rendered":"https:\/\/msc-ai.knipmeyer.co.uk\/?p=87"},"modified":"2021-05-05T13:10:51","modified_gmt":"2021-05-05T13:10:51","slug":"hitting-problems-with-the-ui","status":"publish","type":"post","link":"http:\/\/msc-ai.knipmeyer.co.uk\/index.php\/2021\/05\/05\/hitting-problems-with-the-ui\/","title":{"rendered":"Hitting problems with the UI"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">In my game i wanted each &#8216;screen&#8217; in the NetLogo to be a different rendering, hence i stored room interconnects in an array (as previously posted). I&#8217;ve not been able to find a way to make this array work in the same method I would for python.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">As I have a better understanding of the Netlogo tiles\/patches, I could use something like the &#8216;pacman&#8217; maze, but make the necessary changes to meet my gaming requirements.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">As such I stated with the level editor to make a basic map to see if my understanding would work.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"908\" src=\"https:\/\/msc-ai.knipmeyer.co.uk\/wp-content\/uploads\/2021\/05\/image-17-1024x908.png\" alt=\"\" class=\"wp-image-88\" srcset=\"http:\/\/msc-ai.knipmeyer.co.uk\/wp-content\/uploads\/2021\/05\/image-17-1024x908.png 1024w, http:\/\/msc-ai.knipmeyer.co.uk\/wp-content\/uploads\/2021\/05\/image-17-300x266.png 300w, http:\/\/msc-ai.knipmeyer.co.uk\/wp-content\/uploads\/2021\/05\/image-17-768x681.png 768w, http:\/\/msc-ai.knipmeyer.co.uk\/wp-content\/uploads\/2021\/05\/image-17-1536x1361.png 1536w, http:\/\/msc-ai.knipmeyer.co.uk\/wp-content\/uploads\/2021\/05\/image-17-2048x1815.png 2048w, http:\/\/msc-ai.knipmeyer.co.uk\/wp-content\/uploads\/2021\/05\/image-17-338x300.png 338w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>pacman map editor basic form<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">I was able to give settings for px\/pycor and patch size to get a really nice &#8216;map&#8217; for the pac-man character to work around in.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"821\" height=\"1024\" src=\"https:\/\/msc-ai.knipmeyer.co.uk\/wp-content\/uploads\/2021\/05\/image-19-821x1024.png\" alt=\"\" class=\"wp-image-90\" srcset=\"http:\/\/msc-ai.knipmeyer.co.uk\/wp-content\/uploads\/2021\/05\/image-19-821x1024.png 821w, http:\/\/msc-ai.knipmeyer.co.uk\/wp-content\/uploads\/2021\/05\/image-19-241x300.png 241w, http:\/\/msc-ai.knipmeyer.co.uk\/wp-content\/uploads\/2021\/05\/image-19-768x958.png 768w, http:\/\/msc-ai.knipmeyer.co.uk\/wp-content\/uploads\/2021\/05\/image-19.png 906w\" sizes=\"auto, (max-width: 821px) 100vw, 821px\" \/><figcaption>adjust px,pycor and patch size results in a good size gaming area<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">I can use the netlogo turtle shapes editor to make my own monsters and hero.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"593\" src=\"https:\/\/msc-ai.knipmeyer.co.uk\/wp-content\/uploads\/2021\/05\/image-20-1024x593.png\" alt=\"\" class=\"wp-image-91\" srcset=\"http:\/\/msc-ai.knipmeyer.co.uk\/wp-content\/uploads\/2021\/05\/image-20-1024x593.png 1024w, http:\/\/msc-ai.knipmeyer.co.uk\/wp-content\/uploads\/2021\/05\/image-20-300x174.png 300w, http:\/\/msc-ai.knipmeyer.co.uk\/wp-content\/uploads\/2021\/05\/image-20-768x444.png 768w, http:\/\/msc-ai.knipmeyer.co.uk\/wp-content\/uploads\/2021\/05\/image-20-1536x889.png 1536w, http:\/\/msc-ai.knipmeyer.co.uk\/wp-content\/uploads\/2021\/05\/image-20-2048x1185.png 2048w, http:\/\/msc-ai.knipmeyer.co.uk\/wp-content\/uploads\/2021\/05\/image-20-500x289.png 500w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>netlogo shapes editor<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Therefore, i will create my hero and monsters and then start building apon the logic in pacman code. I want my character to have attributes and also to have to collect objects, much like the classic &#8216;Atic Atac&#8217; game on the ZX Spectrum. I&#8217;ll also create a &#8216;special&#8217; monster (a dragon), that will have &#8216;health&#8217; protecting a special exit key. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"826\" src=\"https:\/\/msc-ai.knipmeyer.co.uk\/wp-content\/uploads\/2021\/05\/image-21-1024x826.png\" alt=\"\" class=\"wp-image-92\" srcset=\"http:\/\/msc-ai.knipmeyer.co.uk\/wp-content\/uploads\/2021\/05\/image-21-1024x826.png 1024w, http:\/\/msc-ai.knipmeyer.co.uk\/wp-content\/uploads\/2021\/05\/image-21-300x242.png 300w, http:\/\/msc-ai.knipmeyer.co.uk\/wp-content\/uploads\/2021\/05\/image-21-768x620.png 768w, http:\/\/msc-ai.knipmeyer.co.uk\/wp-content\/uploads\/2021\/05\/image-21-1536x1239.png 1536w, http:\/\/msc-ai.knipmeyer.co.uk\/wp-content\/uploads\/2021\/05\/image-21-2048x1652.png 2048w, http:\/\/msc-ai.knipmeyer.co.uk\/wp-content\/uploads\/2021\/05\/image-21-372x300.png 372w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>Classic Spectrum game &#8216;Atic Atak&#8217;<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">I&#8217;ll use sliders and ticks to make &#8216;health&#8217; and &#8216;time&#8217;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The biggest coding challenge will be making a &#8216;weapon&#8217; as pacman doesnt have a weapon as such, but creating a key and then a procedure should be less complex than my original plan of using a multi-room array to present each screen.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In my game i wanted each &#8216;screen&#8217; in the NetLogo to be a different rendering, hence i stored room interconnects in an array (as previously posted). I&#8217;ve not been able to find a way to make this array work in &hellip; <a href=\"http:\/\/msc-ai.knipmeyer.co.uk\/index.php\/2021\/05\/05\/hitting-problems-with-the-ui\/\">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-87","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\/87","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=87"}],"version-history":[{"count":1,"href":"http:\/\/msc-ai.knipmeyer.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/87\/revisions"}],"predecessor-version":[{"id":93,"href":"http:\/\/msc-ai.knipmeyer.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/87\/revisions\/93"}],"wp:attachment":[{"href":"http:\/\/msc-ai.knipmeyer.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=87"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/msc-ai.knipmeyer.co.uk\/index.php\/wp-json\/wp\/v2\/categories?post=87"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/msc-ai.knipmeyer.co.uk\/index.php\/wp-json\/wp\/v2\/tags?post=87"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}