{"id":21,"date":"2018-05-20T17:24:49","date_gmt":"2018-05-20T17:24:49","guid":{"rendered":"https:\/\/blogs.scummvm.org\/pantherengine\/?p=21"},"modified":"2022-05-23T19:50:39","modified_gmt":"2022-05-23T19:50:39","slug":"week-1","status":"publish","type":"post","link":"https:\/\/blogs.scummvm.org\/pantherengine\/2018\/05\/20\/week-1\/","title":{"rendered":"Week 1"},"content":{"rendered":"<p>At the first week I fixed bugs in Pink Panther engine.<\/p>\n<p>&nbsp;<\/p>\n<p>Not much work was done because I have exams in university.<\/p>\n<p>The games were crashing when decoding some sprites, but at first I thought that it was a problem with my code. I ran the game with Valgrind and found a method which wrote\u00a0beyond the array. And it was ScummVm\u2019s decoder method.\u00a0It decoded BYTE_RUN chunk as standard FLC format.<\/p>\n<p><a href=\"https:\/\/github.com\/scummvm\/scummvm\/pull\/1190\" rel=\"nofollow\">https:\/\/github.com\/scummvm\/scummvm\/pull\/1190<\/a><\/p>\n<p>Next, I fixed sprites which started to play with delay. The problem was in that I decode frames until startFrame, but didn\u2019t take into account the next frame start time. So I added a method which decodes the frame, but didn\u2019t add a frame delay.<\/p>\n<p><a href=\"https:\/\/github.com\/whiterandrek\/scummvm\/commit\/7fe6bb2963fe72f8aaaf0697aeb6c9da92aff722\" rel=\"nofollow\">https:\/\/github.com\/whiterandrek\/scummvm\/commit\/7fe6bb2963fe72f8aaaf0697aeb6c9da92aff722<\/a><\/p>\n<p>Next week I plan to add the menu to call PDA from it and finish loop sprites which currently are played only forward.<\/p>\n<p>Some gameplay from current version<\/p>\n<div style=\"width: 580px;\" class=\"wp-video\"><!--[if lt IE 9]><script>document.createElement('video');<\/script><![endif]-->\n<video class=\"wp-video-shortcode\" id=\"video-21-1\" width=\"580\" height=\"326\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/blogs.scummvm.org\/pantherengine\/wp-content\/uploads\/sites\/31\/2022\/05\/Pink-Panther-ScummVM-gameplay-JeYflhHEYR8.mp4?_=1\" \/><a href=\"https:\/\/blogs.scummvm.org\/pantherengine\/wp-content\/uploads\/sites\/31\/2022\/05\/Pink-Panther-ScummVM-gameplay-JeYflhHEYR8.mp4\">https:\/\/blogs.scummvm.org\/pantherengine\/wp-content\/uploads\/sites\/31\/2022\/05\/Pink-Panther-ScummVM-gameplay-JeYflhHEYR8.mp4<\/a><\/video><\/div>\n","protected":false},"excerpt":{"rendered":"<p>At the first week I fixed bugs in Pink Panther engine. &nbsp; Not much work was done because I have exams in university. The games were crashing when decoding some sprites, but at first I thought that it was a problem with my code. I ran the game with Valgrind and found a method which [&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-21","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blogs.scummvm.org\/pantherengine\/wp-json\/wp\/v2\/posts\/21","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.scummvm.org\/pantherengine\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.scummvm.org\/pantherengine\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.scummvm.org\/pantherengine\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.scummvm.org\/pantherengine\/wp-json\/wp\/v2\/comments?post=21"}],"version-history":[{"count":1,"href":"https:\/\/blogs.scummvm.org\/pantherengine\/wp-json\/wp\/v2\/posts\/21\/revisions"}],"predecessor-version":[{"id":27,"href":"https:\/\/blogs.scummvm.org\/pantherengine\/wp-json\/wp\/v2\/posts\/21\/revisions\/27"}],"wp:attachment":[{"href":"https:\/\/blogs.scummvm.org\/pantherengine\/wp-json\/wp\/v2\/media?parent=21"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.scummvm.org\/pantherengine\/wp-json\/wp\/v2\/categories?post=21"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.scummvm.org\/pantherengine\/wp-json\/wp\/v2\/tags?post=21"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}