{"id":129,"date":"2023-07-09T15:08:05","date_gmt":"2023-07-09T15:08:05","guid":{"rendered":"https:\/\/imxn.net\/wp2x\/?page_id=129"},"modified":"2023-07-09T15:39:28","modified_gmt":"2023-07-09T15:39:28","slug":"godot-project-tpac","status":"publish","type":"page","link":"https:\/\/imxn.net\/wp2x\/index.php\/godot-project-tpac\/","title":{"rendered":"Godot Project : TPAC"},"content":{"rendered":"\n<p><a href=\"https:\/\/imxn.net\/wp2x\/index.php\/projects\/\" data-type=\"page\" data-id=\"122\">&lt;&lt; Back to Projects<\/a><\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"600\" data-id=\"131\" src=\"https:\/\/imxn.net\/wp2x\/wp-content\/uploads\/2023\/07\/gd_plan20-1024x600.jpg\" alt=\"\" class=\"wp-image-131\" srcset=\"https:\/\/imxn.net\/wp2x\/wp-content\/uploads\/2023\/07\/gd_plan20-1024x600.jpg 1024w, https:\/\/imxn.net\/wp2x\/wp-content\/uploads\/2023\/07\/gd_plan20-300x176.jpg 300w, https:\/\/imxn.net\/wp2x\/wp-content\/uploads\/2023\/07\/gd_plan20-768x450.jpg 768w, https:\/\/imxn.net\/wp2x\/wp-content\/uploads\/2023\/07\/gd_plan20.jpg 1451w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"947\" height=\"594\" data-id=\"132\" src=\"https:\/\/imxn.net\/wp2x\/wp-content\/uploads\/2023\/07\/gd_plan21.jpg\" alt=\"\" class=\"wp-image-132\" srcset=\"https:\/\/imxn.net\/wp2x\/wp-content\/uploads\/2023\/07\/gd_plan21.jpg 947w, https:\/\/imxn.net\/wp2x\/wp-content\/uploads\/2023\/07\/gd_plan21-300x188.jpg 300w, https:\/\/imxn.net\/wp2x\/wp-content\/uploads\/2023\/07\/gd_plan21-768x482.jpg 768w\" sizes=\"auto, (max-width: 947px) 100vw, 947px\" \/><\/figure>\n<\/figure>\n\n\n\n<p>I cant recall why it&#8217;s called TPAC (the P was for planet iirc). This one I made with godot2d, it gets a heightmap and generates a map based on the values in it. Since the data contains height data I added adjustable water level. There is only one png in the above tiles, but the colour is modified based on the location (x,y,z) and sealevel.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Challenges<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The function to adjust sealevel was a bit slow, the slowdown was noticable on bigger maps. It had to re calculate every tile and the new values that came with it. <\/li>\n\n\n\n<li>Enemy AI. To make even simple AI for TBS is tricky as it&#8217;s hard to make it good.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">Status<\/h4>\n\n\n\n<p>On hold (indefinitely) &#8211;  The scope of the project is too big. Perhaps if I ever make a small, but functional AI that would perform well enough, I could continue this.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&lt;&lt; Back to Projects I cant recall why it&#8217;s called TPAC (the P was for planet iirc). This one I made with godot2d, it gets a heightmap and generates a map based on the values in it. Since the data contains height data I added adjustable water level. There is only one png in the&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-129","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/imxn.net\/wp2x\/index.php\/wp-json\/wp\/v2\/pages\/129","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/imxn.net\/wp2x\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/imxn.net\/wp2x\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/imxn.net\/wp2x\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/imxn.net\/wp2x\/index.php\/wp-json\/wp\/v2\/comments?post=129"}],"version-history":[{"count":4,"href":"https:\/\/imxn.net\/wp2x\/index.php\/wp-json\/wp\/v2\/pages\/129\/revisions"}],"predecessor-version":[{"id":137,"href":"https:\/\/imxn.net\/wp2x\/index.php\/wp-json\/wp\/v2\/pages\/129\/revisions\/137"}],"wp:attachment":[{"href":"https:\/\/imxn.net\/wp2x\/index.php\/wp-json\/wp\/v2\/media?parent=129"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}