{"id":740,"date":"2018-01-26T23:12:22","date_gmt":"2018-01-27T07:12:22","guid":{"rendered":"http:\/\/www.adamantyr.com\/blog\/?p=740"},"modified":"2018-01-26T23:12:22","modified_gmt":"2018-01-27T07:12:22","slug":"mischief-managed","status":"publish","type":"post","link":"http:\/\/www.adamantyr.com\/index.php\/2018\/01\/26\/mischief-managed\/","title":{"rendered":"Mischief Managed"},"content":{"rendered":"<p>The manager module is code complete! And with about a kilobyte to spare&#8230;<\/p>\n<p>I suppose I shouldn&#8217;t be too surprised it managed to take up nearly 12k&#8230; building interfaces and controls is by far the most expensive operation in any application. I ended up moving party re-ordering into the travel module. I had originally envisioned a separate page with animation and stuff, but I was able to build something much cheaper in memory and simpler in design.<\/p>\n<p>A lot of the interface focused on only permitting options that were doable. A good example is equiping items. The interface requires you to remove items before it lets you equip something new in the same slot. Why? Because if you had, for example, a 1 handed weapon and shield in the offhand, equiping a two-handed weapon drops two items into your backpack, not one, and if a player had no space for the additional item, it would get lost, or cause an error of some kind.<\/p>\n<p>Another example, if the item in question isn&#8217;t usable by the class, you&#8217;re not even given the option to equip it. The same goes for trading items. If you&#8217;re in a solo party, you can&#8217;t give anything away. If it&#8217;s a two-man party, your trading partner is obvious.<\/p>\n<p>Next phase, combat! This will be interesting, besides reclaiming and rectifying the older code base, I also have some new code to write:<\/p>\n<ul>\n<li>Generate character set graphics dynamically for each map<\/li>\n<li>Generate battlemaps dynamically for each battle based on underlying terrain<\/li>\n<li>Allow for multiple monster types for different stats<\/li>\n<li>Allow for large monster types that occupy four squares instead of one, and must be targetable as a single entity<\/li>\n<\/ul>\n<p>Cry havoc&#8230; \ud83d\ude09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The manager module is code complete! And with about a kilobyte to spare&#8230; I suppose I shouldn&#8217;t be too surprised it managed to take up nearly 12k&#8230; building interfaces and controls is by far the most expensive operation in any &hellip; <a href=\"http:\/\/www.adamantyr.com\/index.php\/2018\/01\/26\/mischief-managed\/\">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":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3,4,12],"tags":[],"class_list":["post-740","post","type-post","status-publish","format-standard","hentry","category-coding","category-crpg","category-ti-994a"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pgaeMJ-bW","_links":{"self":[{"href":"http:\/\/www.adamantyr.com\/index.php\/wp-json\/wp\/v2\/posts\/740","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.adamantyr.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.adamantyr.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.adamantyr.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.adamantyr.com\/index.php\/wp-json\/wp\/v2\/comments?post=740"}],"version-history":[{"count":1,"href":"http:\/\/www.adamantyr.com\/index.php\/wp-json\/wp\/v2\/posts\/740\/revisions"}],"predecessor-version":[{"id":741,"href":"http:\/\/www.adamantyr.com\/index.php\/wp-json\/wp\/v2\/posts\/740\/revisions\/741"}],"wp:attachment":[{"href":"http:\/\/www.adamantyr.com\/index.php\/wp-json\/wp\/v2\/media?parent=740"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.adamantyr.com\/index.php\/wp-json\/wp\/v2\/categories?post=740"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.adamantyr.com\/index.php\/wp-json\/wp\/v2\/tags?post=740"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}