This week we continued to play with the Sense HAT and as we’ve been mostly focusing on projects so far this year we took the opportunity to look at some of the theory behind programming.
We looked at how we use variables, loops and decisions in our programs and we also learned about algorithms. An algorithm is a set of rules we can use to solve a problem for example an algorithm to determine if a given year is a leap year. A year is a leap year if it is divisible by four, but not by one hundred, unless it is divisible by four hundred.
We then worked on a program which would allow us to “move” an LED around the LED matrix on the Sense HAT. You can run our code on the trinket.io Sense HAT emulator.
Dave will lead the group next week when he will cover some basic electronics.
It was great to see everybody back after the break.
I had a big box of goodies from the recent Raspberry Pi Pioneers competition. We got more swag for both teams that entered including some very nice badges and three really interesting books.
Our Zombie Trolls also got their prize for failing really well 😊. This included a Raspberry Pi, a 5” HDMI Monitor, some basic electronic components, t-shirts and an Astro Pi Sense Hat (Hat stands for ‘Hardware Attached on Top’).
The Sense HAT add-on board was specially created for the Astro Pi competition which gives kids the chance to get their code running on one of two Raspberry Pi devices that are on the International Space Station.
The board gives Astro Pi the ability to ‘sense’ and make many kinds of measurements, from temperature to movement, and to output information using a special display – the 8×8 LED matrix. We had great fun playing around with the Sense Hat and it’s definitely something we will get great use out of and maybe we could enter the Astro Pi competition and have our code running on the ISS.
We also took a look at controlling an Arduino from Unity 3D which is something that could be used for 4D/Immersive Technology type game.
Thanks to everyone who came yesterday and special welcome to our new people. Thank you all for your patience with the projector!
This week we did a game based on an old game called Breakout.
The object of the game is to try and get rid of all the blocks by bouncing a ball into them using a bat of some type. You all had your own versions of what you wanted the game to look that and that’s brilliant, your imagination is way better than mine.
The first thing we did was design your bat and write some code to control it. We decided that the mouse should control the movement and that the movement should be only from left to right and vice versa.
I have also uploaded the finished game to the Scratch Website if anybody wants to take a look at it or for anyone that wasn’t there on Saturday. I will go through it at the beginning of next weeks session if anyone has any questions.
You will find the login details for our account on the Scratch website in the notes above.
Today we started with a little brainstorm about what we want to do this term. We took a little vote about what to tackle today and most people wanted to have a go at building a game.. so that’s what … Continue reading →
I didn’t realize when I posted yesterday that the results of the Pioneers Challenge were out today.
Here is the Raspberry Pi Blog post announcing the winners.
Congratulations to Barry, Kevin and Zack the Zombie Trolls whose project Zombie In The Middle won the We Appreciate What You’re Trying To Do prize. the following is a quote from the website.
“Playing piggy in the middle with zombies sure is a unique way of saving humankind from total extinction! We loved this project idea, and although the Zombie Trolls had a little trouble with their motors, we’re sure with a little more tinkering this zombie-fooling contraption could save us all.”
Well done to the three boys and well done to all the Bodgers because all the Pioneers teams helped each other out, most importantly at the beginning when we were trying to come up with ideas for our entries.
Last Saturday we finished up for the break with our Christmas party. We played video of the projects we entered in the Raspberry Pi Foundation’s Pioneers Challenge “Only You Can Save Us”. The challenge involved teams working on projects that would help people if there was a zombie apocalypse.
We then gave everyone an opportunity to have a go at a robot wars style game with our Raspberry Pi robots.
Happy Christmas Everyone, we’re really looking forward to next year and building more cool stuff.
This week you guys amazed us! Kieran and I were blown away by the talent of the ninjas in Creators this week. We set you a task at the start of the session to create a snowy Christmas scene which … Continue reading →
See you next week for something a little Christmas themed!
We completed our Mario game this week. We coded Mario so that he always floated down on to the wall. We added a fraction of a second of a wait so that it appears that he floats as he comes down. This also allows time for you to navigate left or right as needed.
We also introduced a more advanced concept, the Parallax effect, whereby objects further away appear to move slower than objects nearer. We coded mountains and a Sun to demonstrate this.