{"id":138,"date":"2015-06-10T07:40:17","date_gmt":"2015-06-10T07:40:17","guid":{"rendered":"http:\/\/headbangames.com\/devblog\/?p=138"},"modified":"2016-06-14T07:30:24","modified_gmt":"2016-06-14T07:30:24","slug":"devblog-part-6-swimming-new-game-mechanic-added","status":"publish","type":"post","link":"https:\/\/headbangames.com\/devblog\/devblog-part-6-swimming-new-game-mechanic-added\/","title":{"rendered":"Devblog part #6 \u2013 Swimming &#8211; New game mechanic added."},"content":{"rendered":"<p>Here is another new addition to the game mechanics, swimming, swim up with the jump button and swim down with the down arrow and of course move left\/right also works.<\/p>\n<p>The swimming emulation was done by manipulating the player&#8217;s gravity factor when overlapping the water tile.<br \/>\nThe water is just a solid blue color tile with 40% opacity and a cool webgl water effect on it.<\/p>\n<div style=\"width: 476px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-138-1\" width=\"476\" height=\"256\" loop preload=\"auto\" controls=\"controls\"><source type=\"video\/mp4\" src=\"http:\/\/headbangames.com\/devblog\/wp-content\/uploads\/2015\/06\/swim.mp4?_=1\" \/><a href=\"http:\/\/headbangames.com\/devblog\/wp-content\/uploads\/2015\/06\/swim.mp4\">http:\/\/headbangames.com\/devblog\/wp-content\/uploads\/2015\/06\/swim.mp4<\/a><\/video><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Here is another new addition to the game mechanics, swimming, swim up with the jump button and swim down with the down arrow and of course move left\/right also works. The swimming emulation was done by manipulating the player&#8217;s gravity factor when overlapping the water tile. The water is just a solid blue color tile &hellip; <a href=\"https:\/\/headbangames.com\/devblog\/devblog-part-6-swimming-new-game-mechanic-added\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Devblog part #6 \u2013 Swimming &#8211; New game mechanic added.&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":1436,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"Devblog part #6 \u2013 Swimming - New game mechanic added.","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[1],"tags":[],"class_list":["post-138","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/headbangames.com\/devblog\/wp-content\/uploads\/blogHeader.png?fit=672%2C218&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7AvTt-2e","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/headbangames.com\/devblog\/wp-json\/wp\/v2\/posts\/138","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/headbangames.com\/devblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/headbangames.com\/devblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/headbangames.com\/devblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/headbangames.com\/devblog\/wp-json\/wp\/v2\/comments?post=138"}],"version-history":[{"count":1,"href":"https:\/\/headbangames.com\/devblog\/wp-json\/wp\/v2\/posts\/138\/revisions"}],"predecessor-version":[{"id":1473,"href":"https:\/\/headbangames.com\/devblog\/wp-json\/wp\/v2\/posts\/138\/revisions\/1473"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/headbangames.com\/devblog\/wp-json\/wp\/v2\/media\/1436"}],"wp:attachment":[{"href":"https:\/\/headbangames.com\/devblog\/wp-json\/wp\/v2\/media?parent=138"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/headbangames.com\/devblog\/wp-json\/wp\/v2\/categories?post=138"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/headbangames.com\/devblog\/wp-json\/wp\/v2\/tags?post=138"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}