{"id":114,"date":"2011-03-08T22:55:17","date_gmt":"2011-03-09T03:55:17","guid":{"rendered":"https:\/\/www.galacticsovereign.com\/?p=114"},"modified":"2011-03-08T22:55:17","modified_gmt":"2011-03-09T03:55:17","slug":"planetary-interaction-lua-empowerment","status":"publish","type":"post","link":"https:\/\/www.galacticsovereign.com\/?p=114","title":{"rendered":"Planetary interaction, Lua empowerment"},"content":{"rendered":"<p>A significant update today-<\/p>\n<p>I&#8217;ve retextured the basic projectiles to look more interesting.\u00c2\u00a0 I&#8217;ve also modified the XML to be able to dynamically load a texture for projectiles instead of requiring an index number to an internal array, so adding new textures for new projectiles is trivial.\u00c2\u00a0 I did that for the ships a while ago, but I guess I missed the projectiles.<\/p>\n<p>I&#8217;ve added a mouse-over system.\u00c2\u00a0 Hover the cursor over a planet, and you see it&#8217;s name and faction.\u00c2\u00a0 Hover over an enemy ship, and you see it&#8217;s name, faction, and a bar for health.\u00c2\u00a0 Hover over a star to see it&#8217;s name.<\/p>\n<p>I&#8217;ve added the ability to claim planets.\u00c2\u00a0 It&#8217;s just a &#8220;claim&#8221; button you can bring up with &#8220;e&#8221; while landed right now, I&#8217;m not totally sure how it will work from a gameplay perspective yet.\u00c2\u00a0 I don&#8217;t think it&#8217;s reasonable for the player to be able to run around claiming every unpopulated planet for free, so there will probably be a resource cost, or the player will have to escort a colony ship from an established planet, or something along those lines.<\/p>\n<p>Unclaimed planets spawn an endless stream of ships, just to showcase the new ability for LUA to easily spawn ships on demand.\u00c2\u00a0 I&#8217;ll tie ship spawning and which faction the ships belong to to the planet&#8217;s defence level in the next update.<\/p>\n<p>There&#8217;s now a &#8220;planet update&#8221; function in LUA, called for every planet every half second, to process things like mining, ship spawning, factories, and whatever else planets might do.\u00c2\u00a0 Automatically called, timed scripts really extend the power of scripts, so I&#8217;ll be adding more in the future.<\/p>\n<p>Lastly, a bar on the lower right indicates the current charge for the gravity tool.<\/p>\n<p>So, for next time:<\/p>\n<p>A planet upgrade menu.\u00c2\u00a0 All the mining and factory data is in place, the player just needs an interface to get at it.\u00c2\u00a0 The button is there, but is not currently hooked to anything.<\/p>\n<p>A satellite defence system for planets.\u00c2\u00a0 The player can&#8217;t be expected to be everywhere, so planets will need to be able to fend for themselves to some degree.\u00c2\u00a0 Also, taking a hostile planet by force should be a significant undertaking, so it needs to be able to fight back.\u00c2\u00a0 It&#8217;s probably something the player should only be able to do later on in the game, so I&#8217;ll probably have planets be immune to normal attacks, and add some special, expensive tool for sieging planets.<\/p>\n<p><a href=\"https:\/\/www.galacticsovereign.com\/wp-content\/uploads\/2011\/03\/ver21.zip\">ver21<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>A significant update today- I&#8217;ve retextured the basic projectiles to look more interesting.\u00c2\u00a0 I&#8217;ve also modified the XML to be able to dynamically load a texture for projectiles instead of requiring an index number to an internal array, so adding &hellip; <a href=\"https:\/\/www.galacticsovereign.com\/?p=114\">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":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-114","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.galacticsovereign.com\/index.php?rest_route=\/wp\/v2\/posts\/114","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.galacticsovereign.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.galacticsovereign.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.galacticsovereign.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.galacticsovereign.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=114"}],"version-history":[{"count":0,"href":"https:\/\/www.galacticsovereign.com\/index.php?rest_route=\/wp\/v2\/posts\/114\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.galacticsovereign.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=114"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.galacticsovereign.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=114"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.galacticsovereign.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}