{"id":22,"date":"2016-05-25T12:25:22","date_gmt":"2016-05-25T10:25:22","guid":{"rendered":"https:\/\/blogs.scummvm.org\/iskrich\/?p=22"},"modified":"2022-04-17T12:27:26","modified_gmt":"2022-04-17T10:27:26","slug":"director-just-add-a-little-moves","status":"publish","type":"post","link":"https:\/\/blogs.scummvm.org\/iskrich\/2016\/05\/25\/director-just-add-a-little-moves\/","title":{"rendered":"Director: Just add a little moves"},"content":{"rendered":"<p>When we learn how\u00a0to to deal\u00a0with Director objects, our aim will be to build a structure, that can execute animations.<\/p>\n<p>For this purpose, three working classes were established.<\/p>\n<p><strong>Sprite<\/strong>\u00a0\u2013 information about position, size and reference to cast data.<\/p>\n<p><strong>Frame<\/strong> \u2013\u00a0set of sprites and information about tempo, delay, palette.<\/p>\n<p><strong>Score<\/strong> \u2013 just set of frames.<\/p>\n<p><!--more--><\/p>\n<p>Information about score data is located in fourCC \u2018VWSC\u2019. This also provides information for our timeline.<\/p>\n<p>So, if we use it well for our DIB casts,<i>\u00a0<\/i>we get well-suited result:<\/p>\n<p><a href=\"https:\/\/blogs.scummvm.org\/iskrich\/wp-content\/uploads\/sites\/20\/2016\/05\/test.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-24\" src=\"https:\/\/blogs.scummvm.org\/iskrich\/wp-content\/uploads\/sites\/20\/2016\/05\/test.gif\" alt=\"\" width=\"500\" height=\"200\" \/><\/a>As you may have noticed, there are some problems related with transparency sprites. So bad.<\/p>\n<p>In addition to this issue, some cast information, like sprite\u00a0rectangle \u00a0will be needed in the future. I also hope,\u00a0that by next post I get to show<em>\u00a0\u00a0<\/em>implementation FPS.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When we learn how\u00a0to to deal\u00a0with Director objects, our aim will be to build a structure, that can execute animations. For this purpose, three working classes were established. Sprite\u00a0\u2013 information about position, size and reference to cast data. Frame \u2013\u00a0set of sprites and information about tempo, delay, palette. Score \u2013 just set of frames.<\/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-22","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blogs.scummvm.org\/iskrich\/wp-json\/wp\/v2\/posts\/22","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.scummvm.org\/iskrich\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.scummvm.org\/iskrich\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.scummvm.org\/iskrich\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.scummvm.org\/iskrich\/wp-json\/wp\/v2\/comments?post=22"}],"version-history":[{"count":2,"href":"https:\/\/blogs.scummvm.org\/iskrich\/wp-json\/wp\/v2\/posts\/22\/revisions"}],"predecessor-version":[{"id":25,"href":"https:\/\/blogs.scummvm.org\/iskrich\/wp-json\/wp\/v2\/posts\/22\/revisions\/25"}],"wp:attachment":[{"href":"https:\/\/blogs.scummvm.org\/iskrich\/wp-json\/wp\/v2\/media?parent=22"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.scummvm.org\/iskrich\/wp-json\/wp\/v2\/categories?post=22"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.scummvm.org\/iskrich\/wp-json\/wp\/v2\/tags?post=22"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}