0

April 22, 2016 AT 10:00 am

Astro Pi Snake Game #piday #raspberrypi @Raspberry_Pi

Via Stuff about code

I recently made Snake for the Astro Pi, just for fun really, but I am putting it online as I would like to see what others can do with it – it is literally screaming out to be hacked and improved.

I’ve given some ideas and tips but there is much more than could be done.

Anyone budding coders up for the challenge?

I started with the code I originally wrote for Minecraft – Snake and made the changes so that rather than creating blocks in Minecraft it turned on leds and used the joystick to control the motion. I was also surprised by how much I improved the overall structure of the code, it wasn’t poorly coded it was just a bit untidy.

To try it yourself, get the code from github.com/martinohanlon/AstroPiSnake and run it, by opening a terminal and using the commands:

Read more.


2358Each Friday is PiDay here at Adafruit! Be sure to check out our posts, tutorials and new Raspberry Pi related products. Adafruit has the largest and best selection of Raspberry Pi accessories and all the code & tutorials to get you up and running in no time!


Check out all the Circuit Playground Episodes! Our new kid’s show and subscribe!

Have an amazing project to share? Join the SHOW-AND-TELL every Wednesday night at 7:30pm ET on Google+ Hangouts.

Join us every Wednesday night at 8pm ET for Ask an Engineer!

Learn resistor values with Mho’s Resistance or get the best electronics calculator for engineers “Circuit Playground”Adafruit’s Apps!


Maker Business — TechShop is closed, files bankruptcy

Wearables — Get concrete solutions

Electronics — Are you grounded?

Biohacking — Learning to See with Sound

Get the only spam-free daily newsletter about wearables, running a "maker business", electronic tips and more! Subscribe at AdafruitDaily.com !



No Comments

No comments yet.

Sorry, the comment form is closed at this time.