Scratch – Catch The Apples

This is the game we’re going to end up with: You need to open a new scratch project, You need to make these pieces of code as show below. Extensions: Choose your own¬†sprites. Increase¬†the points for edible fruit¬†caught. Reduce¬†the score for anything inedible (like falling spiders!) caught. Comment all of your code (sequence, selection, iteration)

Raspberry Pi Smart Home

Raspberry Pi Raspberry Pi Power Supply Screen (idealy) Keyboard (idealy) Mouse (idealy) An iPhone Homebridge App (idealy) Either go to the Command Line Instructions or follow the instructions on the app. Install Hombridge Config UI X Install Homebridge Config UI X using the following command: sudo npm install -g ‚Äďunsafe-perm homebridge-config-ui-x Install it from the app by going… Continue reading Raspberry Pi Smart Home

Parrot Shooting Game

Creating the Parrot Sprite Delete¬†the¬†default¬†sprite¬†(cat¬†figure)¬†(Right-Click¬†ÔɆ¬†Delete) Import¬†the¬†Parrot¬†sprite¬†(Choose¬†new¬†Sprite¬†from¬†file)¬†¬†¬†¬†¬†¬†¬†¬†¬†¬†¬† Decrease¬†the¬†size¬†of¬†the¬†Parrot¬† Click¬†on¬†Shrink Sprite Click¬†on¬†the¬†Parrot¬†until correct¬†size 2.  Getting the Parrot to move across the screen forever Go¬†to¬†the¬†Scripts¬†section¬†of¬†the¬†Parrot¬†Sprite Add¬†the¬†Script:¬†when¬†¬†clicked: Parrot¬†to¬†move¬†forward¬†10¬†steps¬†forever The parrot will now move to the right until it touches the edge of your screen 3.  Getting the Parrot to bounce back when touching the edge of the screen 1.  Add the if on edge, bounce motion script The parrot now flies in circles, how can we make the parrot move randomly around the screen: In number of steps it moves forward Different angles when touching the edge of the screen Use the Random Scripts… Continue reading Parrot Shooting Game

Shark Tank Game

To begin open a new project on scratch. Shark Tank Game 1) Creating Mr Shark Right click on the Cat Sprite and delete the cat Add the Shark sprite Reduce the size of the shark 2) Moving the Shark up, down, forward, backward Now try to do the same for the Right Arrow key, does the Shark point in the right direction when you click the right arrow? 3) Make sure the Shark appears in the middle of the screen When the Green flag is clicked the Shark should appear in the middle of the screen pointing to theright. What is the right code??? Answer: 4) Make the Shark performing a biting motion Click on Import Add Shark 1‚Äźa Change the Code to enable the shark to switchcostumes (see below) 5) Changing the Background Click on Stage Click on Backgrounds Import the Underwater background Delete the white background 6) Adding Fish Click on Choose new Sprite Add a Fish sprite (you choose) Make the Fish smaller 7) Make the fish move automatically from left to right Click on the Fish Sprite You should know how to make the fish move automatically and bounce off the edge Here is the code if you need help: How can we make sure the fish keeps swimming the right way up all the time? Tip: it is somewhere in the instruction 1! The shark can now easily catch the fish as the fish swims back and forth Instructions: I want the fish to swim from the left edge of the tank to the right The fish needs to start randomly at the left side of the tank When the fish hits the right edge of the tank the fish needs to re‚Äźappear on the left side of the tank ina random position Let‚Äôs try to create the correct code… Continue reading Shark Tank Game

Christmas Tech

Christmas is here! There are so many projects to try: Micro:Bit Snowflakes To decorate your windows! You’ll Need: Micro:Bit (Preferably more than one) A Mac, PC or Raspberry Pi Open Micro Bit Make Code and make a new project and name it: Christmas Snowflake. Open the Radio menu: Drag a ‘Radio Set Group’ block into… Continue reading Christmas Tech

PHP

You need: Raspberry Pi (Setup & connected to the internet) Open the command line. Install Apache (Hosting system): Lets break this code up: sudo: this gives you permission to do this apt-get install: tells the system to install something apache2: the package being installed -y: tells the system that it can do it Once Apache… Continue reading PHP

Web Hosting

Raspberry Pi (Setup) In Terminal, which is: In Terminal enter: Once that is done enter this: This makes your user (pi) own the folder that the HTML files need to go into. Open ‘File Manager’ which is one left of Terminal. In the box that says /home/pi click on it and remove /home/pi and replace… Continue reading Web Hosting

Raspberry Pi Setup

Raspberry Pi (WiFi model best) Micro SD card Power Cable (might come with Pi) HDMI cable (one end micro-HDMI if you need it) Screen with HDMI port Keyboard with USB Mouse with USB Mac WIFI connection Mini SD card to SD convertor USB – SD card convertor (if necessary) Download the Raspberry Pi imager by… Continue reading Raspberry Pi Setup

Python Basics 2

Simple Code Raspberry Pi (Same as past two weeks) This week we’re looking at some simple coding in Python. We’ll get some input from the user, then get another number. We’re going to make a calculator that bites back! First, open Menu>Programming>Thonny Python IDE and write this into the main section (not shell): Press run… Continue reading Python Basics 2