{"id":1868,"date":"2016-06-27T23:03:24","date_gmt":"2016-06-27T21:03:24","guid":{"rendered":"http:\/\/www.switchbl8.nl\/blog\/?p=1868"},"modified":"2016-06-27T23:03:24","modified_gmt":"2016-06-27T21:03:24","slug":"screeps","status":"publish","type":"post","link":"https:\/\/www.switchbl8.nl\/blog\/2016\/06\/screeps\/","title":{"rendered":"Screeps"},"content":{"rendered":"<p>Yesterday I started playing Screeps and bought it even when I hadn&#8217;t finished the (free) tutorial yet. I mentioned <a href=\"http:\/\/www.switchbl8.nl\/blog\/2014\/11\/proof-that-you-are-a-good-programmer-is\/\">Screeps earlier<\/a>, and it&#8217;s now in an almost ready state. It&#8217;s available on <a href=\"http:\/\/store.steampowered.com\/app\/464350\">Steam<\/a>.<\/p>\n<p>The game looks simple, but it&#8217;s not. As I mentioned before, it is only as good as the code you put into it. You can spawn creeps with certain properties, so they can harvest, or attack, or heal. But unless you run a &#8220;program&#8221; that actually uses these properties, the creep is not going to do a thing and will die without being of any use to you.<br \/>\nThe tutorial teaches you to give a creep a role, and the behaviour of each role will be specified in a javascript file for that role.<\/p>\n<p>You will make mistakes. And I don&#8217;t mean mistakes in your code, since the code will only run (of course) when it&#8217;s syntactically correct. No, I mean mistakes about how to play the game. A stupidly placed spawnpoint. Choosing a room full of swamp. Forgetting that other creeps will attack you, and you didn&#8217;t think of defending your base. Creeps will die (of old age), and you forgot to respawn them. That kind of mistakes. And with each mistake you solve, your code gets better. And meanwhile&#8230;&#8230;you get better at coding!<\/p>\n<p><a href=\"http:\/\/www.switchbl8.nl\/blog\/wp-content\/uploads\/2016\/06\/screeps-27062016.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.switchbl8.nl\/blog\/wp-content\/uploads\/2016\/06\/screeps-27062016.png\" alt=\"screeps-27062016\" width=\"1774\" height=\"927\" class=\"aligncenter size-full wp-image-1869\" srcset=\"https:\/\/www.switchbl8.nl\/blog\/wp-content\/uploads\/2016\/06\/screeps-27062016.png 1774w, https:\/\/www.switchbl8.nl\/blog\/wp-content\/uploads\/2016\/06\/screeps-27062016-300x157.png 300w, https:\/\/www.switchbl8.nl\/blog\/wp-content\/uploads\/2016\/06\/screeps-27062016-768x401.png 768w, https:\/\/www.switchbl8.nl\/blog\/wp-content\/uploads\/2016\/06\/screeps-27062016-1024x535.png 1024w\" sizes=\"auto, (max-width: 1774px) 100vw, 1774px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Yesterday I started playing Screeps and bought it even when I hadn&#8217;t finished the (free) tutorial yet. I mentioned Screeps earlier, and it&#8217;s now in an almost ready state. It&#8217;s available on Steam. The game looks simple, but it&#8217;s not. As I mentioned before, it is only as good as the code you put into <a href='https:\/\/www.switchbl8.nl\/blog\/2016\/06\/screeps\/' class='excerpt-more'>[&#8230;]<\/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":[92,129,98,133],"class_list":["post-1868","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-development-2","tag-gaming","tag-javascript","tag-personal","category-1-id","post-seq-1","post-parity-odd","meta-position-corners","fix"],"_links":{"self":[{"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/posts\/1868","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/comments?post=1868"}],"version-history":[{"count":2,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/posts\/1868\/revisions"}],"predecessor-version":[{"id":1871,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/posts\/1868\/revisions\/1871"}],"wp:attachment":[{"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/media?parent=1868"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/categories?post=1868"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/tags?post=1868"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}