Mr. Hill's 6th Grade Technology PageGame On: Intro to Coding
Driving Question: How can I use coding skills to create a digital game that can be used as a learning resource in a K-6 classroom? Course Description: Students will be introduced to the principles of coding and game design. They will then develop a classic arcade game to be used in K-6 classrooms. Student will create a projectile-based physics game using the physics engine-manipulate gravity, hit boxes, collisions, bouncing, static platforms, impulse, velocity, and force. They will learn to: create interactive scenes with actors and music, design animations using loops, build algorithms using conditional logic, define and use functions with parameters, control programs and actors using messaging and program fluid motion with keyboard control. |
Hello, World!
Today we will create our first Scratch Program! As is programming tradition, this first program will be called "Hello, world!" and will say, you guessed it, Hello, world!
The first thing you will need to do is to open Scratch on your Raspberry Pi. In the upper left hand corner of your screen, click the raspberry icon, followed by the programming menu selection and finally Scratch.
You should now see the Scratch GUI
From here, let's name the file. It's always a good idea to name and save your file before you begin any work. To do this, select File on the right hand side of our menu bar. Next, select Save As and then enter your file name in the box titled New Filename.
The format we will use to name our files/programs in class will be the same through out the semester. Use the lesson or section name with an underscore between the title words. This should be followed by your last name:
Hello_World_Hill
Notice that I capitalized the first letter of each word. This will make reading your file names a little easier. If you are having a hard time finding the underscore key look at the right hand side of the top row of keys and find the dash or hyphen key. Press the shift key followed and at the same time as the dash/hyphen key.
Good, now let's have some fun.
Add a Control block by clicking, dragging and dropping it onto our Scripts area. Let's start with the when green flag clicked one. Now, in the Looks category lets choose the say Hello! block. Again, drag and drop it and snap it into place by connecting it to our other block.
In order for the tradition to continue, we need our sprite to say "Hello, world". To make that happen we need to click on the word 'Hello' and change it to 'Hello, world'.
Remember to save your work by clicking on Filed and then Save or by pressing the Ctrl key and the S key (Ctrl + S).
Ok, time for the test. Click the green flag and test your program.
CONGRATULATIONS! You have created your fist program. What now? Let's play around a little and see what we can do.
Try making your sprite:
- say something else
- move
- change colors
- move forward and then change directions and move back to where it started
- repeat it's actions a specific number of times
- repeat it's actions endlessly
- anything else?
GREAT JOB!
Now let's open the 10 BLOCKS file below and let's see what else you can do.
Remember to save your file as 10_Blocks_LastName
![]()
|
![]()
|
|
|