{"id":261,"date":"2012-05-02T23:15:14","date_gmt":"2012-05-03T03:15:14","guid":{"rendered":"http:\/\/www.joshho.com\/blog\/?p=261"},"modified":"2012-08-25T01:48:03","modified_gmt":"2012-08-25T05:48:03","slug":"html5-canvas-snake","status":"publish","type":"post","link":"https:\/\/www.joshho.com\/blog\/2012\/05\/02\/html5-canvas-snake\/","title":{"rendered":"HTML5 Canvas"},"content":{"rendered":"<p>Hi all, been busy with work!<\/p>\n<p>but I found some spare time to try out HTML5 for the first time and\u00a0I ended up making the game Snake &#8211; the classic game from the nokia phones.<\/p>\n<p><a href=\"http:\/\/joshho.com\/apps\/HTML5\/Snake\/\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-266\" title=\"SnakeHTML5\" src=\"http:\/\/www.joshho.com\/blog\/wp-content\/uploads\/2012\/05\/SnakeHTML5.png\" alt=\"\" width=\"300\" height=\"300\" \/><\/a><\/p>\n<p>Play the game <a href=\"http:\/\/joshho.com\/apps\/HTML5\/Snake\/\">here<\/a>.<\/p>\n<p><!--more--><\/p>\n<p>It probably doesn&#8217;t have the best programming model or the most optimized code&#8230; but hey, it runs \ud83d\ude42<\/p>\n<p>Anyways, I want to thank <a href=\"https:\/\/github.com\/cykod\/AlienInvaders\">cykod<\/a>\u00a0for providing the code to\u00a0learn from.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi all, been busy with work!<\/p>\n<p>but I found some spare time to try out HTML5 for the first time and\u00a0I ended up making the game Snake &#8211; the classic game from the nokia phones.<\/p>\n<p><a href=\"http:\/\/joshho.com\/apps\/HTML5\/Snake\/\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-266\" title=\"SnakeHTML5\" src=\"http:\/\/www.joshho.com\/blog\/wp-content\/uploads\/2012\/05\/SnakeHTML5.png\" alt=\"\" width=\"300\" height=\"300\" \/><\/a><\/p>\n<p>Play the game <a href=\"http:\/\/joshho.com\/apps\/HTML5\/Snake\/\">here<\/a>.<\/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":[51,30,52,50,49],"class_list":["post-261","post","type-post","status-publish","format-standard","hentry","category-hobby","category-websiteinformation","tag-canvas","tag-example","tag-game","tag-html5","tag-program"],"_links":{"self":[{"href":"https:\/\/www.joshho.com\/blog\/wp-json\/wp\/v2\/posts\/261","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=261"}],"version-history":[{"count":20,"href":"https:\/\/www.joshho.com\/blog\/wp-json\/wp\/v2\/posts\/261\/revisions"}],"predecessor-version":[{"id":280,"href":"https:\/\/www.joshho.com\/blog\/wp-json\/wp\/v2\/posts\/261\/revisions\/280"}],"wp:attachment":[{"href":"https:\/\/www.joshho.com\/blog\/wp-json\/wp\/v2\/media?parent=261"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.joshho.com\/blog\/wp-json\/wp\/v2\/categories?post=261"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.joshho.com\/blog\/wp-json\/wp\/v2\/tags?post=261"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}