{"id":63,"date":"2022-07-30T15:39:51","date_gmt":"2022-07-30T15:39:51","guid":{"rendered":"https:\/\/blogs.scummvm.org\/stablesteady\/?p=63"},"modified":"2022-07-30T15:39:51","modified_gmt":"2022-07-30T15:39:51","slug":"week-10-working-on-wage-iii","status":"publish","type":"post","link":"https:\/\/blogs.scummvm.org\/stablesteady\/2022\/07\/30\/week-10-working-on-wage-iii\/","title":{"rendered":"Week 10 \u2013 Working on WAGE III"},"content":{"rendered":"<p>Work on WAGE continues this week too. I started by writing some test games which rendered multiple different shapes in different styles so I could get ScummVM to match the original as close as possible.<\/p>\n<p>A common problem with all shapes was how thick borders were handled. The border was supposed to to increase in width equally on both sides of the shape&#8217;s edge but it didn&#8217;t which made the shapes larger than they should have been. This was easy to fix and I did it for all the shapes.<\/p>\n<p>Now to discuss the individual shapes. Rects had the same problem as before with being a pixel longer on the right and bottom so that had to fixed.<\/p>\n<p>For Polygons the way the line was being drawn didn&#8217;t match the original perfectly. ScummVM uses the Bresenham&#8217;s line drawing algorithm for drawing lines but mini vMac either uses something else or is changing the end points of the line&#8230; There&#8217;s a difference of a pixel here and there in the lines which is minor but visible, specially at certain slopes.<\/p>\n<p>For ovals there was another problem with the borders. The thickness had to be uniform throughout the perimeter so I had to change that. And again a similar problem as with the polygons where some lines didn&#8217;t quite match.<\/p>\n<p>Now to deal with the individual game bugs. Most of the are resolved and right now I only have 2 more left to deal with. I hope those don&#8217;t take much time as I have already spent quite a bit of time on WAGE and would like to move to the next engine.<\/p>\n<p>That&#8217;s it for this week and thanks for reading!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Work on WAGE continues this week too. I started by writing some test games which rendered multiple different shapes in different styles so I could get ScummVM to match the original as close as possible. A common problem with all shapes was how thick borders were handled. The border was supposed to to increase in [&hellip;]<\/p>\n","protected":false},"author":12,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-63","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blogs.scummvm.org\/stablesteady\/wp-json\/wp\/v2\/posts\/63","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.scummvm.org\/stablesteady\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.scummvm.org\/stablesteady\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.scummvm.org\/stablesteady\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.scummvm.org\/stablesteady\/wp-json\/wp\/v2\/comments?post=63"}],"version-history":[{"count":1,"href":"https:\/\/blogs.scummvm.org\/stablesteady\/wp-json\/wp\/v2\/posts\/63\/revisions"}],"predecessor-version":[{"id":64,"href":"https:\/\/blogs.scummvm.org\/stablesteady\/wp-json\/wp\/v2\/posts\/63\/revisions\/64"}],"wp:attachment":[{"href":"https:\/\/blogs.scummvm.org\/stablesteady\/wp-json\/wp\/v2\/media?parent=63"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.scummvm.org\/stablesteady\/wp-json\/wp\/v2\/categories?post=63"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.scummvm.org\/stablesteady\/wp-json\/wp\/v2\/tags?post=63"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}