{"id":1084,"date":"2014-04-26T20:17:15","date_gmt":"2014-04-26T19:17:15","guid":{"rendered":"http:\/\/shadowcovenant.com\/blog\/?p=1084"},"modified":"2014-04-26T20:17:15","modified_gmt":"2014-04-26T19:17:15","slug":"update-3-the-updatining","status":"publish","type":"post","link":"http:\/\/shadowcovenant.com\/blog\/2014\/04\/26\/update-3-the-updatining\/","title":{"rendered":"Update #3 &ndash; The Updatining"},"content":{"rendered":"<p>Finally, I have atmospheric currents:<\/p>\n<p><a href=\"http:\/\/shadowcovenant.com\/blog\/wp-content\/uploads\/2014\/04\/screen05.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"screen05\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"screen05\" src=\"http:\/\/shadowcovenant.com\/blog\/wp-content\/uploads\/2014\/04\/screen05_thumb.jpg\" width=\"550\" height=\"322\" \/><\/a><\/p>\n<p>Still need some fine tuning, regarding strength of the effect, etc, but it looks good and behaves as expected\u2026<\/p>\n<p>Though this was going to be easier, until I couldn\u2019t find anywhere a Bezier\/Point distance function\u2026<\/p>\n<p>Basically, the currents are 4-point Beziers (randomly generated)\u2026 To gauge the force of the current at the ship position, I was going to see the distance to the Bezier, and if it was smaller (and finding the parametric position), I\u2019d compute the 1st order derivative and use that as the force\u2026 But finding the distance was a bit harder, so I ended up by having to decompose the Bezier in 10 pieces or so, and do a line\/point distance function\u2026 It works surprisingly well, to be honest, but it\u2019s a dirty hack!<\/p>\n<p>Next on my work list: the squid enemy (or jellyfish, haven\u2019t decided) enemy, which just moves in simple patterns, unaware of our ship\u2026 I think making the asset will be the hardest part\u2026 <img decoding=\"async\" class=\"wlEmoticon wlEmoticon-smile\" style=\"border-top-style: none; border-bottom-style: none; border-right-style: none; border-left-style: none\" alt=\"Smile\" src=\"http:\/\/shadowcovenant.com\/blog\/wp-content\/uploads\/2014\/04\/wlEmoticon-smile3.png\" \/><\/p>\n<div id=\"tweetbutton1084\" class=\"tw_button\" style=\"\"><a href=\"http:\/\/twitter.com\/share?url=http%3A%2F%2Fshadowcovenant.com%2Fblog%2F2014%2F04%2F26%2Fupdate-3-the-updatining%2F&amp;text=Update%20%233%20%26ndash%3B%20The%20Updatining&amp;related=&amp;lang=en&amp;count=horizontal&amp;counturl=http%3A%2F%2Fshadowcovenant.com%2Fblog%2F2014%2F04%2F26%2Fupdate-3-the-updatining%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>Finally, I have atmospheric currents: Still need some fine tuning, regarding strength of the effect, etc, but it looks good and behaves as expected\u2026 Though this was going to be easier, until I couldn\u2019t find anywhere a Bezier\/Point distance function\u2026 Basically, the currents are 4-point Beziers (randomly generated)\u2026 To gauge the force of the current [&hellip;]<\/p>\n<div id=\"tweetbutton1084\" class=\"tw_button\" style=\"\"><a href=\"http:\/\/twitter.com\/share?url=http%3A%2F%2Fshadowcovenant.com%2Fblog%2F2014%2F04%2F26%2Fupdate-3-the-updatining%2F&amp;text=Update%20%233%20%26ndash%3B%20The%20Updatining&amp;related=&amp;lang=en&amp;count=horizontal&amp;counturl=http%3A%2F%2Fshadowcovenant.com%2Fblog%2F2014%2F04%2F26%2Fupdate-3-the-updatining%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":[29],"tags":[],"class_list":["post-1084","post","type-post","status-publish","format-standard","hentry","category-ludumdare"],"_links":{"self":[{"href":"http:\/\/shadowcovenant.com\/blog\/wp-json\/wp\/v2\/posts\/1084","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=1084"}],"version-history":[{"count":1,"href":"http:\/\/shadowcovenant.com\/blog\/wp-json\/wp\/v2\/posts\/1084\/revisions"}],"predecessor-version":[{"id":1085,"href":"http:\/\/shadowcovenant.com\/blog\/wp-json\/wp\/v2\/posts\/1084\/revisions\/1085"}],"wp:attachment":[{"href":"http:\/\/shadowcovenant.com\/blog\/wp-json\/wp\/v2\/media?parent=1084"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/shadowcovenant.com\/blog\/wp-json\/wp\/v2\/categories?post=1084"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/shadowcovenant.com\/blog\/wp-json\/wp\/v2\/tags?post=1084"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}