{"id":11,"date":"2012-09-29T12:00:00","date_gmt":"2012-09-29T12:00:00","guid":{"rendered":"https:\/\/eric.tedjamulia.com\/blog\/windows-8-dodge\/"},"modified":"2012-09-29T12:00:00","modified_gmt":"2012-09-29T12:00:00","slug":"windows-8-dodge","status":"publish","type":"post","link":"https:\/\/eric.tedjamulia.com\/blog\/windows-8-dodge\/","title":{"rendered":"Dodge on a Windows 8 tablet"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Another version of Dodge! This time I wanted to try moving the square by tilting a Windows 8 tablet. The basic idea is still the same: stay away from the bad blocks and try not to get too big.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This version uses an HTML canvas with Box2DWeb doing the collision and body simulation. The game loop aims for 60 updates a second, and the player grows as the score goes up. I gave it a changing gradient background, rotating blocks, and shadows that move with their position. Probably more decoration than a square needs, but it was fun.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The project has the WinJS app startup files as well as browser input code. Mouse and pointer movement set the target position; orientation readings supply movement and rotation for tilt control. I like being able to take the same little game and try a very different way of playing it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/etedj.com\/projects\/Dodge\/\">Open Dodge<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Another version of Dodge! This time I wanted to try moving the square by tilting a Windows 8 tablet. The basic idea is still the same: stay away from the bad blocks and try not to get too big. This version uses an HTML canvas with Box2DWeb doing the collision and body simulation. The game [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":12,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[8,7,3,9],"class_list":["post-11","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-games","tag-box2d","tag-canvas","tag-javascript","tag-windows-8"],"_links":{"self":[{"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/posts\/11","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/comments?post=11"}],"version-history":[{"count":0,"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/posts\/11\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/media\/12"}],"wp:attachment":[{"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/media?parent=11"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/categories?post=11"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/tags?post=11"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}