{"id":708,"date":"2012-09-05T01:29:29","date_gmt":"2012-09-05T05:29:29","guid":{"rendered":"http:\/\/www.joshho.com\/blog\/?p=708"},"modified":"2012-09-05T12:26:21","modified_gmt":"2012-09-05T16:26:21","slug":"html5-bejeweled","status":"publish","type":"post","link":"https:\/\/www.joshho.com\/blog\/2012\/09\/05\/html5-bejeweled\/","title":{"rendered":"HTML5 &#8211; Bejeweled"},"content":{"rendered":"<p>Hi all.. haven&#8217;t been doing much as I&#8217;ve been spending my time looking for jobs.<\/p>\n<p>Anyways, here&#8217;s yet another completed game &#8211; Bejeweled.. this one took almost 4 days and isn&#8217;t as awesome as the Popcap one.<\/p>\n<p>The main point of this exercise was the add the ability to click a location on the canvas and have the corresponding (top) object fire an onclick method. The previous version of the engine it&#8217;s running on did not support this. As a by-product in doing adding this, this exercise was to dabble my hands in creating a robust solution to onclick() and object mapping. I do not think this was achieved as there is no propagation to parent classes.<\/p>\n<p><a href=\"\/apps\/HTML5\/Bejeweled\/\" target=\"_blank\"><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-709\" title=\"Bejeweled\" src=\"http:\/\/www.joshho.com\/blog\/wp-content\/uploads\/2012\/09\/bejeweled-300x213.png\" alt=\"\" width=\"300\" height=\"213\" srcset=\"https:\/\/www.joshho.com\/blog\/wp-content\/uploads\/2012\/09\/bejeweled-300x213.png 300w, https:\/\/www.joshho.com\/blog\/wp-content\/uploads\/2012\/09\/bejeweled.png 705w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>You can play it <a href=\"\/apps\/HTML5\/Bejeweled\/\" target=\"_blank\">here<\/a>.<\/p>\n<p>I tried to polish it up with the menu and the layout, but graphics unfortunately aren&#8217;t my strength.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi all.. haven&#8217;t been doing much as I&#8217;ve been spending my time looking for jobs.<\/p>\n<p>Anyways, here&#8217;s yet another completed game &#8211; Bejeweled.. this one took almost 4 days and isn&#8217;t as awesome as the Popcap one.<\/p>\n<p>The main point of this exercise was the add the ability to click a location on the canvas and have the corresponding (top) object fire an onclick method. The previous version of the engine it&#8217;s running on did not support this. As a by-product in doing adding this, this exercise was to dabble my hands in creating a robust solution to onclick() and object mapping. I do not think this was achieved as there is no propagation to parent classes.<\/p>\n<p><a href=\"\/apps\/HTML5\/Bejeweled\/\" target=\"_blank\"><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-709\" title=\"Bejeweled\" src=\"http:\/\/www.joshho.com\/blog\/wp-content\/uploads\/2012\/09\/bejeweled-300x213.png\" alt=\"\" width=\"300\" height=\"213\" srcset=\"https:\/\/www.joshho.com\/blog\/wp-content\/uploads\/2012\/09\/bejeweled-300x213.png 300w, https:\/\/www.joshho.com\/blog\/wp-content\/uploads\/2012\/09\/bejeweled.png 705w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>You can play it <a href=\"\/apps\/HTML5\/Bejeweled\/\" target=\"_blank\">here<\/a>.<\/p>\n<p>I tried to polish it up with the menu and the layout, but graphics unfortunately aren&#8217;t my strength.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[48,25],"tags":[],"class_list":["post-708","post","type-post","status-publish","format-standard","hentry","category-hobby","category-websiteinformation"],"_links":{"self":[{"href":"https:\/\/www.joshho.com\/blog\/wp-json\/wp\/v2\/posts\/708","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.joshho.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.joshho.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.joshho.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.joshho.com\/blog\/wp-json\/wp\/v2\/comments?post=708"}],"version-history":[{"count":7,"href":"https:\/\/www.joshho.com\/blog\/wp-json\/wp\/v2\/posts\/708\/revisions"}],"predecessor-version":[{"id":714,"href":"https:\/\/www.joshho.com\/blog\/wp-json\/wp\/v2\/posts\/708\/revisions\/714"}],"wp:attachment":[{"href":"https:\/\/www.joshho.com\/blog\/wp-json\/wp\/v2\/media?parent=708"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.joshho.com\/blog\/wp-json\/wp\/v2\/categories?post=708"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.joshho.com\/blog\/wp-json\/wp\/v2\/tags?post=708"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}