codyloyd [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=25710 pico-8 mobile controller <h1>Update (24 Sep 2017)</h1> <p>I've added a pause button, and as was suggested by commenters <a href="https://www.lexaloffle.com/bbs/?uid=12874"> @Felice</a> and <a href="https://www.lexaloffle.com/bbs/?uid=17143"> @apLundell</a> I switched to using the pico glyphs for the graphics... it's a little less flashy looking overall, but gives a much nicer more consistent feel.</p> <h1>Original Post:</h1> <p>I am <em>just</em> getting into playing around with pico-8, but after finishing my first little game, I really wanted to be able to play and distribute it for mobile, so being primarily a JavaScript guy, I've hacked together a little controller that embeds itself on the webpage for mobile devices.</p> <img style="margin-bottom:16px" border=0 src="https://user-images.githubusercontent.com/18574792/30787390-d8f00e56-a14c-11e7-8008-73bd0c8b7890.png" alt="" /> <p>I've tried to keep it as simple for other game-makers to use as possible. As such it should work out of the box with html/js files that are exported from pico-8. All you should have to do to use it with your own game is drop the js, css and png files into the same directory as the html file and then link the files as described in the Readme on github:</p> <h3>Heres the code:</h3> <p><a href="https://github.com/codyloyd/pico-webcontroller">https://github.com/codyloyd/pico-webcontroller</a></p> <h3>and a demo:</h3> <p><a href="http://codyloyd.com/pico-webcontroller-test/">http://codyloyd.com/pico-webcontroller-test/</a><br /> (go there on your phone, or resize your browser window to see the controls.)<br /> and you can also see it in action on my game here: <a href="http://codyloyd.com/jazzyjeff/">http://codyloyd.com/jazzyjeff/</a> </p> <p>I'd love any feedback or tips that you might have. I don't have a huge array of devices to test it out on, so if you find something not working let me know! </p> https://www.lexaloffle.com/bbs/?tid=29937 https://www.lexaloffle.com/bbs/?tid=29937 Sat, 16 Sep 2017 12:40:11 UTC Jazzy Jeff <p> <table><tr><td> <a href="/bbs/?pid=44185#p"> <img src="/bbs/thumbs/pico44184.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=44185#p"> Jazzy Jeff 1.0</a><br><br> by <a href="/bbs/?uid=25710"> codyloyd</a> <br><br><br> <a href="/bbs/?pid=44185#p"> [Click to Play]</a> </td></tr></table> </p> <p>Avoid the ballzz... collect the coins... use the bombs to stay alive</p> <img style="margin-bottom:16px" border=0 src="https://d26dzxoao6i3hh.cloudfront.net/items/053N1w441s0J1H3s402g/Screen%20Recording%202017-09-14%20at%2007.09%20AM.gif?v=17587f1d" alt="" /> https://www.lexaloffle.com/bbs/?tid=29935 https://www.lexaloffle.com/bbs/?tid=29935 Thu, 14 Sep 2017 08:05:52 UTC