{"id":96,"date":"2019-06-30T19:34:32","date_gmt":"2019-06-30T19:34:32","guid":{"rendered":"https:\/\/blogs.scummvm.org\/pantherengine\/?p=96"},"modified":"2022-05-23T19:36:03","modified_gmt":"2022-05-23T19:36:03","slug":"week-5-2","status":"publish","type":"post","link":"https:\/\/blogs.scummvm.org\/pantherengine\/2019\/06\/30\/week-5-2\/","title":{"rendered":"Week 5"},"content":{"rendered":"<p>The first month of work is ended and I have implemented the game demo.<\/p>\n<p>&nbsp;<\/p>\n<p>The game demo is just advertisement intro, which consists of several game scenes.<\/p>\n<p>To get this demo working I have implemented these opcodes:<\/p>\n<ul>\n<li>GOTO \u2013 changes game scene<\/li>\n<li>ZBUFFER \u2013 sets z coordinate<\/li>\n<li>STOP \u2013 shows or hides cursor depending on first argument<\/li>\n<li>BGSFX \u2013 sets fx id to background<\/li>\n<li>ON \u2013 shows object<\/li>\n<li>OFF \u2013 hides object<\/li>\n<li>SET, PLAY \u2013 starts sprite playing.<\/li>\n<\/ul>\n<p>Unfortunately, some opcodes aren\u2019t implemented which leads to some problems in demo. These include END opcode and IMAGE opcode. IMAGE opcode actually isn\u2019t needed. It is used because game script file always starts with heroes objects, which aren\u2019t used.<\/p>\n<p>Also, there is a problem with 8 bit BMP, because game uses a bit modified format, which leads to problem when scene changes to BMP, which isn\u2019t actually loaded.<\/p>\n<div class=\"jetpack-video-wrapper caption-big\">\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-96-1\" width=\"580\" height=\"295\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/blogs.scummvm.org\/pantherengine\/wp-content\/uploads\/sites\/31\/2022\/05\/Red-comrades-ScummVm-nw-aTW_jLl0.mp4?_=1\" \/><a href=\"https:\/\/blogs.scummvm.org\/pantherengine\/wp-content\/uploads\/sites\/31\/2022\/05\/Red-comrades-ScummVm-nw-aTW_jLl0.mp4\">https:\/\/blogs.scummvm.org\/pantherengine\/wp-content\/uploads\/sites\/31\/2022\/05\/Red-comrades-ScummVm-nw-aTW_jLl0.mp4<\/a><\/video><\/div>\n<p><em>(Source: https:\/\/www.youtube.com\/watch?v=nw-aTW_jLl0)<\/em><\/p>\n<\/div>\n<p>Next week I will polish the demo and start to implement dialogs, which are essentially needed for game. Most of scripts can\u2019t be executed without it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The first month of work is ended and I have implemented the game demo. &nbsp; The game demo is just advertisement intro, which consists of several game scenes. To get this demo working I have implemented these opcodes: GOTO \u2013 changes game scene ZBUFFER \u2013 sets z coordinate STOP \u2013 shows or hides cursor depending [&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-96","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blogs.scummvm.org\/pantherengine\/wp-json\/wp\/v2\/posts\/96","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=96"}],"version-history":[{"count":1,"href":"https:\/\/blogs.scummvm.org\/pantherengine\/wp-json\/wp\/v2\/posts\/96\/revisions"}],"predecessor-version":[{"id":98,"href":"https:\/\/blogs.scummvm.org\/pantherengine\/wp-json\/wp\/v2\/posts\/96\/revisions\/98"}],"wp:attachment":[{"href":"https:\/\/blogs.scummvm.org\/pantherengine\/wp-json\/wp\/v2\/media?parent=96"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.scummvm.org\/pantherengine\/wp-json\/wp\/v2\/categories?post=96"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.scummvm.org\/pantherengine\/wp-json\/wp\/v2\/tags?post=96"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}