{"id":31,"date":"2016-06-10T12:30:38","date_gmt":"2016-06-10T10:30:38","guid":{"rendered":"https:\/\/blogs.scummvm.org\/iskrich\/?p=31"},"modified":"2022-04-17T12:32:08","modified_gmt":"2022-04-17T10:32:08","slug":"director-initial-lingo-events","status":"publish","type":"post","link":"https:\/\/blogs.scummvm.org\/iskrich\/2016\/06\/10\/director-initial-lingo-events\/","title":{"rendered":"Director: Initial Lingo, events."},"content":{"rendered":"<p>A week went by, engine changes, but slowly. Now is the moment when differences in Director versions are important.<\/p>\n<p>Under the supervision of sev, I started to learn life cycle of the playback\/draw system, it\u2019s important because it can tell about when causes local events, such as frameEnter, frameExit, idle. In other words, we want to achieve event order, same as in Director. For me personally, it was hard to figure out what order is correct, sev advised me to check it right in Director. Because our target game is Journeyman Project, I looked in 4.0 version. By writing a simple script, I have found right positions in my code for calling this events.<\/p>\n<p><!--more--><\/p>\n<p><a href=\"https:\/\/blogs.scummvm.org\/iskrich\/wp-content\/uploads\/sites\/20\/2016\/06\/script.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-33\" src=\"https:\/\/blogs.scummvm.org\/iskrich\/wp-content\/uploads\/sites\/20\/2016\/06\/script.png\" alt=\"\" width=\"643\" height=\"476\" srcset=\"https:\/\/blogs.scummvm.org\/iskrich\/wp-content\/uploads\/sites\/20\/2016\/06\/script.png 643w, https:\/\/blogs.scummvm.org\/iskrich\/wp-content\/uploads\/sites\/20\/2016\/06\/script-300x222.png 300w\" sizes=\"auto, (max-width: 643px) 100vw, 643px\" \/><\/a>It is worth noting, that in other versions the order differs, part of the problem is new events (D6: stepFrame, prepareFrame, beginSprite \u2026).<\/p>\n<p>Maybe you have already guessed that, this events are necessary for our feature Lingo interpreter. In addition to the system events, I\u2019ve also added mouse events, this event are sent to clicked sprite on top layer.<\/p>\n<p>Simple sound wrapper had been written, in JMP we\u2019ll see .wav and .aiff formats. ScummVM audio decoders deal with this.<\/p>\n<p>Decoder for 1bpp pictures was also added. This pictures are sometimes used instead text.<\/p>\n<p>There is now some issues with 256 color palette loading. I hope problems will be solved, and in the next report I can show movies from The Journeyman Project.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A week went by, engine changes, but slowly. Now is the moment when differences in Director versions are important. Under the supervision of sev, I started to learn life cycle of the playback\/draw system, it\u2019s important because it can tell about when causes local events, such as frameEnter, frameExit, idle. In other words, we want [&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-31","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blogs.scummvm.org\/iskrich\/wp-json\/wp\/v2\/posts\/31","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=31"}],"version-history":[{"count":2,"href":"https:\/\/blogs.scummvm.org\/iskrich\/wp-json\/wp\/v2\/posts\/31\/revisions"}],"predecessor-version":[{"id":34,"href":"https:\/\/blogs.scummvm.org\/iskrich\/wp-json\/wp\/v2\/posts\/31\/revisions\/34"}],"wp:attachment":[{"href":"https:\/\/blogs.scummvm.org\/iskrich\/wp-json\/wp\/v2\/media?parent=31"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.scummvm.org\/iskrich\/wp-json\/wp\/v2\/categories?post=31"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.scummvm.org\/iskrich\/wp-json\/wp\/v2\/tags?post=31"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}