{"id":127,"date":"2018-07-18T14:56:35","date_gmt":"2018-07-18T14:56:35","guid":{"rendered":"https:\/\/blogs.scummvm.org\/joefish-gsoc\/?p=127"},"modified":"2022-05-21T14:59:06","modified_gmt":"2022-05-21T14:59:06","slug":"week-8-animation-and-controls","status":"publish","type":"post","link":"https:\/\/blogs.scummvm.org\/joefish-gsoc\/2018\/07\/18\/week-8-animation-and-controls\/","title":{"rendered":"Week 8 &#8212; Animation and Controls"},"content":{"rendered":"<div style=\"width: 580px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-127-1\" width=\"580\" height=\"327\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/blogs.scummvm.org\/joefish-gsoc\/wp-content\/uploads\/sites\/22\/2018\/07\/Wizard-movement-and-animation-AUu9c4qiMGE.mp4?_=1\" \/><a href=\"https:\/\/blogs.scummvm.org\/joefish-gsoc\/wp-content\/uploads\/sites\/22\/2018\/07\/Wizard-movement-and-animation-AUu9c4qiMGE.mp4\">https:\/\/blogs.scummvm.org\/joefish-gsoc\/wp-content\/uploads\/sites\/22\/2018\/07\/Wizard-movement-and-animation-AUu9c4qiMGE.mp4<\/a><\/video><\/div>\n<p style=\"text-align: center;\"><em>(Source: https:\/\/www.youtube.com\/watch?v=AUu9c4qiMGE)<\/em><\/p>\n<ul>\n<li>Rewriting animation handling<\/li>\n<li>Avatar (controls and animations)<\/li>\n<li>Inventory<\/li>\n<\/ul>\n<p>Even the simplest thing can turn out to be a big time drain.<\/p>\n<p>I encountered mismatches in the mapping for sprites and their actual position in the files before and assumed that some change from version to version. Apparently, they changed the file layout and compression mid-development and added a lookup table to remap sprite packs and files to how they (presumably) were originally. I\u2019m glad it cost me only a day of manually jumping around in tables and I didn\u2019t end up with more work than necessary.<\/p>\n<p>Seeing the wizard casually paddle out of bounds on his barrel is more than worth it though.<\/p>\n<p><a href=\"https:\/\/blogs.scummvm.org\/joefish-gsoc\/wp-content\/uploads\/sites\/22\/2018\/07\/ezgif.com-optimize.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-130\" src=\"https:\/\/blogs.scummvm.org\/joefish-gsoc\/wp-content\/uploads\/sites\/22\/2018\/07\/ezgif.com-optimize.gif\" alt=\"\" width=\"782\" height=\"440\" \/><\/a>The inventory is almost done (except for using items of course). Either text rendering needs to be refactored so it can be used outside of dialogs or rewrite the inventory so it fits the structure of a dialog. <span style=\"text-decoration: line-through;\">I will update the GIF tomorrow once it&#8217;s fixed<\/span>.<\/p>\n<h3 id=\"next\">Next<\/h3>\n<ul>\n<li>Update viewport camera to follow wizard<\/li>\n<li>Render static objects (chests, torches, \u2026)<\/li>\n<li>Collision detection<\/li>\n<li>Interaction with objects (pick up items from bodies, chests, \u2026)<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>(Source: https:\/\/www.youtube.com\/watch?v=AUu9c4qiMGE) Rewriting animation handling Avatar (controls and animations) Inventory Even the simplest thing can turn out to be a big time drain. I encountered mismatches in the mapping for sprites and their actual position in the files before and assumed that some change from version to version. Apparently, they changed the file layout and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-127","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blogs.scummvm.org\/joefish-gsoc\/wp-json\/wp\/v2\/posts\/127","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.scummvm.org\/joefish-gsoc\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.scummvm.org\/joefish-gsoc\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.scummvm.org\/joefish-gsoc\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.scummvm.org\/joefish-gsoc\/wp-json\/wp\/v2\/comments?post=127"}],"version-history":[{"count":2,"href":"https:\/\/blogs.scummvm.org\/joefish-gsoc\/wp-json\/wp\/v2\/posts\/127\/revisions"}],"predecessor-version":[{"id":131,"href":"https:\/\/blogs.scummvm.org\/joefish-gsoc\/wp-json\/wp\/v2\/posts\/127\/revisions\/131"}],"wp:attachment":[{"href":"https:\/\/blogs.scummvm.org\/joefish-gsoc\/wp-json\/wp\/v2\/media?parent=127"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.scummvm.org\/joefish-gsoc\/wp-json\/wp\/v2\/categories?post=127"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.scummvm.org\/joefish-gsoc\/wp-json\/wp\/v2\/tags?post=127"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}