{"id":67,"date":"2026-08-04T10:38:18","date_gmt":"2026-08-04T10:38:18","guid":{"rendered":"https:\/\/blogs.scummvm.org\/priyanshu\/?p=67"},"modified":"2026-08-04T10:40:19","modified_gmt":"2026-08-04T10:40:19","slug":"week-11","status":"publish","type":"post","link":"https:\/\/blogs.scummvm.org\/priyanshu\/2026\/08\/04\/week-11\/","title":{"rendered":"Week 11"},"content":{"rendered":"<p>Welcome back to another blog. Last week, I primarily worked on the text rendering inside the help panel that includes hint questions and their respective answers(hints).<\/p>\n<p>The help panel provides us with hints in the form of questions and clicking on each question provides us with some hints in the forms of answers to those questions. I am currently testing the whole pipeling with one test case i.e. &#8220;How do I get out of the furnace room?&#8221; which is the case 3 in the hint system&#8217;s state machine implement in the function Control::buildHints() in control.cpp.<\/p>\n<p>The question and answers are implemented in the form of a struct Hint that contains an integer for storing the question&#8217;s number and an array of integers for storing the answers indices. The questions and answers are implemented in an array of strings in <a href=\"https:\/\/github.com\/Priyanshu3820\/scummvm\/blob\/a9e74bc3202a23bbf6c08eb5a6eda50f6668b8df\/engines\/sky\/ibasstext.cpp#L27\">ibasstext.cpp<\/a><\/p>\n<p>And the font rendering is done in a method named <code>initHelpPanel()<\/code>. For the rest of the questions and answers, we have the placeholder(&#8220;?&#8221;). The hint system for the furnace case looks like this-<\/p>\n<p>&nbsp;<\/p>\n<div style=\"width: 580px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-67-1\" width=\"580\" height=\"455\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/webm\" src=\"https:\/\/blogs.scummvm.org\/priyanshu\/wp-content\/uploads\/sites\/85\/2026\/08\/Screencast-from-2026-08-04-16-02-05.webm?_=1\" \/><a href=\"https:\/\/blogs.scummvm.org\/priyanshu\/wp-content\/uploads\/sites\/85\/2026\/08\/Screencast-from-2026-08-04-16-02-05.webm\">https:\/\/blogs.scummvm.org\/priyanshu\/wp-content\/uploads\/sites\/85\/2026\/08\/Screencast-from-2026-08-04-16-02-05.webm<\/a><\/video><\/div>\n<p>Clicking anywhere else than the answer&#8217;s rect clears the answers(think of it as a back button to the question). And, to close the hint panel, we hit the esc button.<\/p>\n<p>After fully implementing the hint system&#8217;s pipeline end to end and testing with the furnace case, I will now be porting rest of the cases too. And just like english, it has support for many different language like Spanish, Italian etc. adding whose support for the hint system I am considering in the longer run. See you in the next blog.<\/p>\n<p>Thanks for reading \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Welcome back to another blog. Last week, I primarily worked on the text rendering inside the help panel that includes hint questions and their respective answers(hints). The help panel provides us with hints in the form of questions and clicking on each question provides us with some hints in the forms of answers to those [&hellip;]<\/p>\n","protected":false},"author":33,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-67","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blogs.scummvm.org\/priyanshu\/wp-json\/wp\/v2\/posts\/67","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.scummvm.org\/priyanshu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.scummvm.org\/priyanshu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.scummvm.org\/priyanshu\/wp-json\/wp\/v2\/users\/33"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.scummvm.org\/priyanshu\/wp-json\/wp\/v2\/comments?post=67"}],"version-history":[{"count":3,"href":"https:\/\/blogs.scummvm.org\/priyanshu\/wp-json\/wp\/v2\/posts\/67\/revisions"}],"predecessor-version":[{"id":72,"href":"https:\/\/blogs.scummvm.org\/priyanshu\/wp-json\/wp\/v2\/posts\/67\/revisions\/72"}],"wp:attachment":[{"href":"https:\/\/blogs.scummvm.org\/priyanshu\/wp-json\/wp\/v2\/media?parent=67"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.scummvm.org\/priyanshu\/wp-json\/wp\/v2\/categories?post=67"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.scummvm.org\/priyanshu\/wp-json\/wp\/v2\/tags?post=67"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}