{"id":66,"date":"2010-08-21T17:31:59","date_gmt":"2010-08-21T16:31:59","guid":{"rendered":"http:\/\/shadowcovenant.com\/blog\/2010\/08\/21\/advancing-army\/"},"modified":"2010-08-21T17:31:59","modified_gmt":"2010-08-21T16:31:59","slug":"advancing-army","status":"publish","type":"post","link":"http:\/\/shadowcovenant.com\/blog\/2010\/08\/21\/advancing-army\/","title":{"rendered":"Advancing army&#8230;"},"content":{"rendered":"\n<p>Got some more game logic in the game: the army now advances&#8230;<\/p>\n<p>The army can only spawn in grass-tiles on the left side, and it advances choosing randomly a direction (up, down, right), prioritizing up and down (to avoid having too many &#8220;straglers&#8221;).<\/p>\n<p><a href=\"http:\/\/shadowcovenant.com\/blog\/wp-content\/uploads\/2010\/08\/screen02.jpg\" title=\"screen02.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/shadowcovenant.com\/blog\/wp-content\/uploads\/2010\/08\/zrtn_003n202631fc_tn.jpg\" style=\"BORDER-BOTTOM: #000000 1px; BORDER-LEFT: #000000 1px; BORDER-TOP: #000000 1px; BORDER-RIGHT: #000000 1px\" height=\"387\" width=\"500\" alt=\"screen02.jpg\" border=\"0\"\/><\/a><\/p>\n<p>Took me longer than normal, since I did an XML system to be able to customize any unit&#8230; so adding new units, is just editing the XML file (data-driven code ftw!).<\/p>\n<p>The sprite is traced from Oryx&#8217;s sprite pack from the TIG Assemblee competition (really like that pack)&#8230; I zoomed it in Photoshop than placed all pixels by hand in a new image, adding the small feet animation aswell&#8230; Think this is allowed and it looks much better than something that I started without a reference&#8230; Going to do that for the rest of the graphics, since it looks nice&#8230;<\/p>\n<p>Now to get some wall-destroying logic going&#8230; The army will only attack the wall if he can&#8217;t move forward anymore (the army never retreats!).<\/p>\n<div id=\"tweetbutton66\" class=\"tw_button\" style=\"\"><a href=\"http:\/\/twitter.com\/share?url=http%3A%2F%2Fshadowcovenant.com%2Fblog%2F2010%2F08%2F21%2Fadvancing-army%2F&amp;text=Advancing%20army%26%238230%3B&amp;related=&amp;lang=en&amp;count=horizontal&amp;counturl=http%3A%2F%2Fshadowcovenant.com%2Fblog%2F2010%2F08%2F21%2Fadvancing-army%2F\" class=\"twitter-share-button\"  style=\"width:55px;height:22px;background:transparent url('http:\/\/shadowcovenant.com\/blog\/wp-content\/plugins\/wp-tweet-button\/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;\">Tweet<\/a><\/div>","protected":false},"excerpt":{"rendered":"<p>Got some more game logic in the game: the army now advances&#8230; The army can only spawn in grass-tiles on the left side, and it advances choosing randomly a direction (up, down, right), prioritizing up and down (to avoid having too many &#8220;straglers&#8221;). Took me longer than normal, since I did an XML system to [&hellip;]<\/p>\n<div id=\"tweetbutton66\" class=\"tw_button\" style=\"\"><a href=\"http:\/\/twitter.com\/share?url=http%3A%2F%2Fshadowcovenant.com%2Fblog%2F2010%2F08%2F21%2Fadvancing-army%2F&amp;text=Advancing%20army%26%238230%3B&amp;related=&amp;lang=en&amp;count=horizontal&amp;counturl=http%3A%2F%2Fshadowcovenant.com%2Fblog%2F2010%2F08%2F21%2Fadvancing-army%2F\" class=\"twitter-share-button\"  style=\"width:55px;height:22px;background:transparent url('http:\/\/shadowcovenant.com\/blog\/wp-content\/plugins\/wp-tweet-button\/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;\">Tweet<\/a><\/div>","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23,6,29],"tags":[35],"class_list":["post-66","post","type-post","status-publish","format-standard","hentry","category-development","category-games","category-ludumdare","tag-foodphoto"],"_links":{"self":[{"href":"http:\/\/shadowcovenant.com\/blog\/wp-json\/wp\/v2\/posts\/66","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/shadowcovenant.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/shadowcovenant.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/shadowcovenant.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/shadowcovenant.com\/blog\/wp-json\/wp\/v2\/comments?post=66"}],"version-history":[{"count":0,"href":"http:\/\/shadowcovenant.com\/blog\/wp-json\/wp\/v2\/posts\/66\/revisions"}],"wp:attachment":[{"href":"http:\/\/shadowcovenant.com\/blog\/wp-json\/wp\/v2\/media?parent=66"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/shadowcovenant.com\/blog\/wp-json\/wp\/v2\/categories?post=66"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/shadowcovenant.com\/blog\/wp-json\/wp\/v2\/tags?post=66"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}