{"id":50,"date":"2020-09-30T20:44:00","date_gmt":"2020-10-01T01:44:00","guid":{"rendered":"https:\/\/cynthiamcmahon.ca\/blog\/index.php\/2020\/09\/android\/"},"modified":"2020-09-30T20:44:00","modified_gmt":"2020-10-01T01:44:00","slug":"android","status":"publish","type":"post","link":"https:\/\/cynthiamcmahon.ca\/blog\/2020\/09\/android\/","title":{"rendered":"Android"},"content":{"rendered":"<p>I spent the day porting Shadow Monsters&nbsp; to Android. The issue I had was dealing&nbsp; with input. Touch is very different than keyboad, mouse and game pad input. In most cases I had to implement an event based model to handle taps. I now have most of the game working. The items remaining are shops, selecting items and selecting shadow monsters. I&#8217;m going to hold off on those because I&#8217;m going to redesign how I handle lists. I will design them with touch input in mind.<\/p>\n<p>I came across an issue I need to resolve. I load the world using the content manager. Trying to load it a second time,&nbsp; if the player exits and goes back in, does not reload the world. The world is in the exact same state. The same is true for other content. I only just discovered this and haven&#8217;t worked out how&nbsp; I&#8217;m going to workaround it.<\/p>\n<p>Over&nbsp; the&nbsp; next few days I will be devoting some time to my next tutorial. I haven&#8217;t decided which series I will be working on. Probably Eyes of the Dragon but I might do another Shadow Monsters.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I spent the day porting Shadow Monsters&nbsp; to Android. The issue I had was dealing&nbsp; with input. Touch is very different than keyboad, mouse and game pad input. In most cases I had to implement an event based model to handle taps. I now have most of the game working. The items remaining are shops, &hellip; <\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-50","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/cynthiamcmahon.ca\/blog\/wp-json\/wp\/v2\/posts\/50","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cynthiamcmahon.ca\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cynthiamcmahon.ca\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cynthiamcmahon.ca\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/cynthiamcmahon.ca\/blog\/wp-json\/wp\/v2\/comments?post=50"}],"version-history":[{"count":0,"href":"https:\/\/cynthiamcmahon.ca\/blog\/wp-json\/wp\/v2\/posts\/50\/revisions"}],"wp:attachment":[{"href":"https:\/\/cynthiamcmahon.ca\/blog\/wp-json\/wp\/v2\/media?parent=50"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cynthiamcmahon.ca\/blog\/wp-json\/wp\/v2\/categories?post=50"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cynthiamcmahon.ca\/blog\/wp-json\/wp\/v2\/tags?post=50"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}