{"id":124,"date":"2014-07-05T00:52:11","date_gmt":"2014-07-04T22:52:11","guid":{"rendered":"http:\/\/fwilliander.se\/portfolio\/?post_type=dm_project&#038;p=124"},"modified":"2022-04-25T03:01:16","modified_gmt":"2022-04-25T01:01:16","slug":"run-miley-run","status":"publish","type":"dm_project","link":"https:\/\/fwilliander.se\/portfolio\/project\/run-miley-run\/","title":{"rendered":"Run Miley Run"},"content":{"rendered":"<p>Together with <a title=\"August\" href=\"http:\/\/augustostberg.com\/\" target=\"_blank\">August \u00d6stberg<\/a>\u00a0and Martin Staaf we were commissioned by Sony Music to create a game for Miley Cyrus&#8217;s concert in Stockholm, after a few long nights, beers and too much pizza we created &#8221;Run Miley Run&#8221;.<\/p>\n<p>A game were Miley Cyrus jumps from rooftop to rooftop exploring Stockholm. The player with the highest score won tickets to the concert. Simple, easy, addictive and fun.<\/p>\n<p>The game is responsive and can be plays from most devices, phone, tablet, desktop etc. Works best as a web-app on your iPhone5 though.<\/p>\n<p>Since money and time was tight we decided to not restrict the game to much, meaning that most of it was open JavaScript code. Something that we first saw as a problem because it was easy for people to cheat, but after a while when we saw all the cool things people added, modified and coded on top of our game we realised that it was one of the best decisions ever.<\/p>\n<p>We did have a cheat-catcher though, so the correct people won the tickets.<\/p>\n<p>So for example. Add this code in the console while running the game.<\/p>\n<pre>javascript:setInterval( \r\n    function(){ \r\n        game.buildings.forEach(function(e){ \r\n            if(!game.jumping &amp;&amp; e.width+e.left0){ \r\n                game.startJump(); \r\n            } \r\n            if(game.jumping&amp;&amp;e.left&gt;220&amp;&amp;(game.ySpeed==0||((game.y-e.height)\/(e.left-200)&gt;0.3+(0.2\/game.speed)))){ \r\n                game.endJump(); \r\n            } \r\n        }); \r\n},0.01)<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Creative, Programming, Technical Direction <\/p>\n","protected":false},"featured_media":133,"template":"","roles":[10,9,3],"_links":{"self":[{"href":"https:\/\/fwilliander.se\/portfolio\/wp-json\/wp\/v2\/projects\/124"}],"collection":[{"href":"https:\/\/fwilliander.se\/portfolio\/wp-json\/wp\/v2\/projects"}],"about":[{"href":"https:\/\/fwilliander.se\/portfolio\/wp-json\/wp\/v2\/types\/dm_project"}],"version-history":[{"count":7,"href":"https:\/\/fwilliander.se\/portfolio\/wp-json\/wp\/v2\/projects\/124\/revisions"}],"predecessor-version":[{"id":386,"href":"https:\/\/fwilliander.se\/portfolio\/wp-json\/wp\/v2\/projects\/124\/revisions\/386"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fwilliander.se\/portfolio\/wp-json\/wp\/v2\/media\/133"}],"wp:attachment":[{"href":"https:\/\/fwilliander.se\/portfolio\/wp-json\/wp\/v2\/media?parent=124"}],"wp:term":[{"taxonomy":"Types","embeddable":true,"href":"https:\/\/fwilliander.se\/portfolio\/wp-json\/wp\/v2\/roles?post=124"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}