We’ll be starting back this year on Saturday 5th October from 10:00 to 12:00, at Athy College. Ages 7–16. No laptop needed, however please have a Google account set up in advance. All welcome, no registration needed.
Ever played Hangman? You have to guess a mystery word before the stickman is fully drawn. The algorithm (or recipe as the instructions call it) to make the game is explained in pseudocode. Hangman Project in Scratch
You can right-click (or two-finger tap if on a Chromebook) to import this list of 5-letter words for Hangman attached below.
To import this project into your Scratch folder, first download it, then go to File > Upload from your computer. Once you have selected it will be loaded in Scratch.
To import the list of five-letter words, download it to your computer, right-click on an existing list and select the import option. Then, select the words.txt file to import into the list. Each line in the .txt file represents each item in the list.
Our “guess the image” jukebox today is using several ScratchX plugins. It uses Clarifai to classify an image and produce some keywords, and then Spotify plays ten seconds of a track matching the keywords. Here are the addresses of the ScratchX plugins:
Here’s the Ninja version with some of the code already set up for you: Image_Jukebox_Ninja_Version.sbx
And finally the completed version: Image_Jukebox_Final_Version.sbx
Today, Ninjas are getting a chance to mess around with a physics engine called Box2D in a side-scrolling ScratchX game that sees them pushing over haybales and avoiding swinging ramps with a monster truck! What will happen if we give our truck really bouncy tyres or give one less grip or even change gravity itself!
To give you a bit of a head-start in the game you can download a partially-made version of the game here: Gravity_Density_and_Bounce_Ninja_Version.sbx.
The final version should like a bit like this one: Gravity_Density_and_Bounce_Final_Version.sbx.
Today our advanced group started to look at ScratchX. With ScratchX you can add extra modules to the Scratch environment, and today we looked at the Scratch3D extension.
Firstly, we looked at 3D coordinates. With Scratch we normally have x and y, but now we have z. In the picture you can see x going left to right and y going up and down, but now we also have z coming torwards and away from us. In this image the sun is at the centre of the solar system, x=y=z=0.
Because you can move around the 3D space, you can’t easily show coordinates in the corner like you can with the fixed 2D space of normal Scratch. Well, you could show where the viewer (or “camera”) is located, but since you can be facing in any direction, and maybe even upside-down, your location is only part of the story. The code here shows how you can set the x, y, and z coordinates to be displayed as big numbers in 3D space as in the image above. It’s much easier to see where you are with big numbers floating all around you!
Finally, here’s the code to create the sun and planets, and place them around in space. The Scratch3D extension makes it really easy to create a planet, place it where you want, scale it to the size you want, complete with full-colour texture map, and all in one line. We also have a Lego Darth Vader and a Car (a Tesla?) hidden somewhere in space. Next the forever loop keeps the planets and sun rotating gradually. You can see in the corner the first few blocks for moving around. You can download the Scratch script here.
We’ll be back for another year on Saturday October 6th, 10:00–12:00, in Athy College. Looking forward to seeing you all! A full list of dates is on the right (if you’re on a desktop browser), or at the bottom of the page (on a mobile browser).
Due to the weather, Athy College will be closed this weekend for safety reasons. We hope to be back next week (10th)!
Today we started building a robot from Makeblock. A small group carefully dismantled it (it had already been assembled) and started putting it into a different configuration, a mobile arm with grabber. Next time we hope to finish the construction and start programming it!
Our first session for this year will be Saturday October 7th at 10am. As usual we ask people to book (free) tickets through the calendar on the right so we can anticipate numbers.
After checking the school calendar, public holidays, etc., we’ve drawn up the following list of dates that CoderDojo Athy will be running. Tickets for all dates are available now.
October: 7, 14, 21
November: 11, 18, 25
December: 2, 9
January: 13, 20, 27
February: 3, 24
March: 3, 10
April: 14, 21, 28
Saturday 27th will be our last session this (academic) year. The following weekend is the June public holiday, and school summer holidays and state exams start after that.
Enjoy the summer!