I finally got my hands on a Raspberry Pi and started messing around with it.I decided not to read anything at first and dive in, much to my failure, not realising I had to edit the config.txt file for it to actually display correctly on my telly.
So after that little error, i decided to read up and see what people had done with there’s and try some things out. I settled on the Idea of making it a Music Streamer, being able to listen in on my phone.
So here’s a detailed tutorial of how I did it, from start to finish. I’ll start by setting up the pi, setting up the music streaming, then adding a web server and some web pages to enable remote control of it too.
Read more …
Today I carried on with the game, and went from this to this. I’ve swapped coloured bricks for clouds and made fluttershy say “yay” when she lands on a grey cloud.
I Also added a landing page for the most up-to-date version and start / restart button.
I’ve noticed that with this new canvas it takes a while to load the first time, but after it quite nice, unlike flash where it has ages to pre cache everything each time you refresh. On the downside the audio support isn’t great. There’s a php script to identify the browser and select the correct audio file. Clearing the canvas to start again was also a mystery, so instead made the button use ajax to load the game form a separate page. Restarting it simply empties the block and loads it in again, creating a blank canvas, may not be the best way of doing it but it seems to work fine.
The hard part now, trying to add a score submission box and a high scores table, and after that, actually try get this game out here a little.
I finally got ajax working. It has been the bane of my life for ages, every time I’ve tried to work it or follow these 4 states or whatever, its always confused the hell out of me. So with a little help I got my first bit of code. Read more …