{"id":200,"date":"2015-09-15T06:37:23","date_gmt":"2015-09-15T14:37:23","guid":{"rendered":"http:\/\/adamantyr.com\/blog\/?p=200"},"modified":"2015-09-15T06:37:23","modified_gmt":"2015-09-15T14:37:23","slug":"bullet-points","status":"publish","type":"post","link":"http:\/\/www.adamantyr.com\/index.php\/2015\/09\/15\/bullet-points\/","title":{"rendered":"Bullet points"},"content":{"rendered":"<p>Another five months, another sporadic update&#8230; \ud83d\ude42 Been busy with various things; my girlfriend and I completed our living room decor this weekend and it is beautiful! If only my office was that clean and zen&#8230;<\/p>\n<p>After spending some time working in C# on a transaction parser, I went back to the assembly code to actually implement the transaction code itself. This was important because I suspected, correctly, that the act of actually writing out the implementation would help determine what transactions I needed.<\/p>\n<p>For example, my original plan had a transaction code that would alter any byte\/word value in the game&#8217;s data arrays. This meant tracking size, operation type, index, whether or not subtraction would go below zero, not allow below zero, etc. But I realized it burning up too much code space to do a single simple operation.<\/p>\n<p>Instead I focused on making transaction codes for specific use cases. Because training points are earned by all players at once, I just wrote a code to do that and that alone, rather than engineer a solution that would do it for anything anywhere.<\/p>\n<p>Writing up transactions also revealed I had a lot of &#8220;dead&#8221; code from older implementations lurking about. Removing these feels good as it&#8217;s cleaning up the codebase and freeing up memory. I have just under 5k of space left which looks like it will be enough to finish it!<\/p>\n<p>I came up with a new idea as well; I&#8217;m adding gambling as an option to the game. Certain places will have a gambling sub-game, involving dice rolls. I&#8217;m a big fan of the <a href=\"http:\/\/crpgaddict.blogspot.com\/\">CRPG Addict<\/a>, and he&#8217;s noted that games to win money are useful for bypassing tedious monster fighting in games. Given I don&#8217;t want the game to focus solely on combat, it seems like a nice idea to have the option to earn money in other ways.<\/p>\n<p>Right now, I&#8217;m working on buying and selling items. I&#8217;ve hit a particularly complicated and infuriating snag, which is ammunition. I decided to make the item # for ammunition types reflect the count of ammunition awhile ago, because I didn&#8217;t want to maintain separate counts of items for everything. This &#8220;special case&#8221; though is causing major headaches&#8230; I can&#8217;t just consider the number of items in a backpack as an indicator of fullness where ammunition is concerned, because it should add to an existing item&#8230; IF it&#8217;s in there. Plus I have to display the cost on screen a little differently, showing the number of ammunition you buy for the given amount. So more special casing, argh! For selling items, I&#8217;m not even going to allow you to sell ammunition back for money, it&#8217;s just too complicated&#8230;<\/p>\n<p>The good news is that after I&#8217;m done with all the transaction code, my next step is to prepare a baseline &#8220;demo&#8221; data package for test purposes, compile the code, fix bugs, and start testing the hell out of the engine to make sure everything works. Once that&#8217;s done, I can start actually WRITING the game in earnest. Getting closer and closer&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Another five months, another sporadic update&#8230; \ud83d\ude42 Been busy with various things; my girlfriend and I completed our living room decor this weekend and it is beautiful! If only my office was that clean and zen&#8230; After spending some time &hellip; <a href=\"http:\/\/www.adamantyr.com\/index.php\/2015\/09\/15\/bullet-points\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","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":[4,5,12],"tags":[],"class_list":["post-200","post","type-post","status-publish","format-standard","hentry","category-crpg","category-design","category-ti-994a"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pgaeMJ-3e","_links":{"self":[{"href":"http:\/\/www.adamantyr.com\/index.php\/wp-json\/wp\/v2\/posts\/200","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=200"}],"version-history":[{"count":0,"href":"http:\/\/www.adamantyr.com\/index.php\/wp-json\/wp\/v2\/posts\/200\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.adamantyr.com\/index.php\/wp-json\/wp\/v2\/media?parent=200"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.adamantyr.com\/index.php\/wp-json\/wp\/v2\/categories?post=200"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.adamantyr.com\/index.php\/wp-json\/wp\/v2\/tags?post=200"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}