+ All Categories
Home > Documents > A coding lesson guide - RM/media/PDFs/What-We-do/Scotland/Glow... · 2015. 11. 27. · has written...

A coding lesson guide - RM/media/PDFs/What-We-do/Scotland/Glow... · 2015. 11. 27. · has written...

Date post: 18-Aug-2021
Category:
Upload: others
View: 0 times
Download: 0 times
Share this document with a friend
11
Lesson ideas using Glow Lesson ideas using Glow A coding lesson guide
Transcript
Page 1: A coding lesson guide - RM/media/PDFs/What-We-do/Scotland/Glow... · 2015. 11. 27. · has written it. To do this we will change the print block to read ‘centre of the display’.

Lesson ideas using Glow

Lesson ideasusing Glow

A coding lesson guide

Page 2: A coding lesson guide - RM/media/PDFs/What-We-do/Scotland/Glow... · 2015. 11. 27. · has written it. To do this we will change the print block to read ‘centre of the display’.

Lesson ideas using Glow

1

Why not celebrate the Rio 2016 Olympics by getting your pupils to code good luck

messages to their sporting heroes?

CoreIn this lesson, learners will program a very simple animation using J2Code. The animation involves a helicopter flying across the computer screen and writing a good luck message for their favourite Olympic Hero.

This coding exercise can be used as a stand-alone activity or as an end point to a literacy-based research project where learners research and support different Olympic and Paralympic heroes. Although it would be ideal to implement the idea during the Rio 2016 Games, the idea is transferable to a number of other contexts.

AimTo create a simple animation using a visual code language.

Learning Outcomes• All children will create a simple animation of a sprite.• Most children will animate a second sprite and make the sprites “speak”.• Some children will experiment and make their own animations and interactions.

Learning Intentions• To develop an understanding of block coding.• To create a simple animation.• To write a simple program that accomplishes a specific goal.• To celebrate your Rio 2016 Olympic hero’s.

Cross curricular / Interdisciplinary learning Links• Literacy: Olympic research and project work• Maths: geometry - position and direction

VocabularyCode, Sprite, Action window

Page 3: A coding lesson guide - RM/media/PDFs/What-We-do/Scotland/Glow... · 2015. 11. 27. · has written it. To do this we will change the print block to read ‘centre of the display’.

Lesson ideas using Glow

2

Login to Glow and add a link tileJ2Code is part of the complete J2e toolsuite which can be purchased through the ‘App Library’, however if you do not wish to do this you can add J2Code as a free resource to your Launch Pad very easily.

Click on ‘App Library’ and then ‘Add Tile’ at the bottom right of the screen.

1

Fill in the required fields, click on ‘generate thumbnail’ then click ‘OK’.

You will be asked to confirm whose Launch Pads you would like to install J2Code on. Click ‘SAVE’ and close the box. You’ve just added your first tile to Glow….well done!

Search ‘J2Code’ and click ‘Add to my Launch Pad’. J2Code will now appear on your Launch Pad (you may have to scroll through a few pages to find it!)

Teaching steps

Page 4: A coding lesson guide - RM/media/PDFs/What-We-do/Scotland/Glow... · 2015. 11. 27. · has written it. To do this we will change the print block to read ‘centre of the display’.

Lesson ideas using Glow

3

Open J2Code: VisualThis is the start screen…..don’t worry it’ll all become crystal clear soon!

2

Move the spriteUse your mouse to move the sprite (currently a penguin) to the bottom left hand corner of the green square (the ‘action’ window). The action window is where you will see your computer animation start to take shape once you have written some code.

As you move the sprite you will notice the ‘x’ and ‘y’ co-ordinates change. Everything that happens in the action window is linked to a co-ordinate.

3

Page 5: A coding lesson guide - RM/media/PDFs/What-We-do/Scotland/Glow... · 2015. 11. 27. · has written it. To do this we will change the print block to read ‘centre of the display’.

Lesson ideas using Glow

4

Now use the ‘+’ button to select the second helicopter sprite. Your screen should now look like this and the penguin will have changed to the helicopter.

Re-name the ‘sprite 1’ to ‘helicopter’ by clicking on the sprite tab along the top of the screen and selecting ‘rename’.

Change and re-name the sprite from a penguin to a helicopterClick on the sprite button (it currently shows a little picture of a penguin).

4

A new menu will appear and you can pick from a range of sprites. Find and select the first helicopter sprite.

Page 6: A coding lesson guide - RM/media/PDFs/What-We-do/Scotland/Glow... · 2015. 11. 27. · has written it. To do this we will change the print block to read ‘centre of the display’.

Lesson ideas using Glow

5

Give your animation a backgroundThe Helicopter (sprite) is just one ‘layer’ of your animation. You can add a new ‘layer’ by clicking on the ‘+’ tab.

5

Click on the ‘+’ tab and select ‘backgrounds’ from the left hand menu.

Select the picture of the sky and click ‘ok’. Rename the tab ‘Sky’.

Page 7: A coding lesson guide - RM/media/PDFs/What-We-do/Scotland/Glow... · 2015. 11. 27. · has written it. To do this we will change the print block to read ‘centre of the display’.

Lesson ideas using Glow

6

Move your helicopterTo get the helicopter to move we need to add some code using the visual code language. To do this click on the ‘</>’ tab.

6

We want our helicopter to move from the bottom left of the screen, to the middle of the screen, then turn right and fly across the screen. In order to get it to do this we need to drag in sections of the visual code into the programming window.

Click on ‘motion’ and drag in the block of visual code that says ‘move forward by’.

change the ‘100’ to ‘200’

Now drag in the block of visual code that says ‘turn right by’ - the two blocks of code will slot together like a jigsaw.

Now drag in the block of visual code that says‘move forward by’.

Re-cap: you have written some code that tells your helicopter to ‘move forward’, ‘turn right’ and ‘move forward’. Now you need to tell it when it should do this.

From the ‘events’ blocks select ‘when space key pressed’ and drag this around your existing move code.

Re-cap: Now you have written some code that tells your helicopter to ‘move forward’, ‘turn right’ and ‘move forward’ when you ‘press the space key’.

You can test your animation by pressing the ‘play button’ and then starting your animation by pressing the ‘space key’.

Page 8: A coding lesson guide - RM/media/PDFs/What-We-do/Scotland/Glow... · 2015. 11. 27. · has written it. To do this we will change the print block to read ‘centre of the display’.

Lesson ideas using Glow

7

Review your code so farOne of the nice things about J2Code is that you can review what your code looks like in Javascript at anytime. Each block is essentially a block of javascript. To review your code click on the JS tab.

7

Add your skywritingNow we are going to add some writing that will appear after the helicopter makes its 90-degree turn. To do this we are going to select the ‘print” at top left of the display’ block.

8

Drag the block into your program after the ‘turn right by 90-degree command block’. Between the speech marks type your good luck message.

You can test your animation by pressing the ‘play button’ and then starting your animation by pressing the ‘space key’.

Page 9: A coding lesson guide - RM/media/PDFs/What-We-do/Scotland/Glow... · 2015. 11. 27. · has written it. To do this we will change the print block to read ‘centre of the display’.

Lesson ideas using Glow

8

Improve your animationNow we are going to think about improving the animation sequence.

The first thing we are going to do is to get the writing to appear in the centre of the screen so it looks like the helicopter has written it. To do this we will change the print block to read ‘centre of the display’.

9

You can test your animation by pressing the ‘play button’ and then starting your animation by pressing the ‘space key’.

Next, we will get the helicopter to fly in smaller stages rather than just ‘up’ and ‘across’. We will also get it to fly off the screen. To do this we will add more lines of ‘move’ code.

You can test your animation by pressing the ‘play button’ and then starting your animation by pressing the ‘space key’.

Finally, we will improve the look of the helicopter by switching between the ‘helicopter 1’ sprite and ‘helicopter 2’ sprite every time the helicopter moves.

To do this we will introduce a block for the ‘Looks’ menu called ‘switch costume to’. We will add this block in after every ‘move forward’ alternating between ‘helicopter 1’ sprite and ‘helicopter 2’.

You can test your animation by pressing the ‘play button’ and then starting your animation by pressing the ‘space key’.

Page 10: A coding lesson guide - RM/media/PDFs/What-We-do/Scotland/Glow... · 2015. 11. 27. · has written it. To do this we will change the print block to read ‘centre of the display’.

Lesson ideas using Glow

9

Play with your codeYou have created a great animation is just a few minutes. Now spend some time playing with the variables and code blocks to see if you can get your helicopter to do or say different things. For example, see if you can move the ‘print’ block to later on in the sequence so that the helicopter doesn’t fly over it.

10

Links to the Curriculum for ExcellenceThis idea can contribute to gathering evidence for the following Experiences and Outcomes.

Curriculum Area and Outcomes DescriptionTechnologyTCH 1-04b; TCH 2-04b; TCH 1-09a; TCH 2-09a

TCH 1-04b; TCH 2-04b - I can create, capture and manipulate sounds, text and images to communicate experiences, ideas and information in creative and engaging ways.

TCH 1-09a - I am developing problem-solving strategies, navigation and co-ordination skills, as I play and learn with electronic games, remote control or programmable toys.

TCH 2-09a - Using appropriate software, I can work collaboratively to design an interesting and entertaining game which incorporates a form of control technology or interactive multimedia.

Literacy across LearningLIT 1-06a; LIT 2-06a

LIT 1-06a - I can select ideas and relevant information, organise these in a logical sequence and use words which will be interesting and/or useful for others.

LIT 2-06a - I can select ideas and relevant information, organise these in an appropriate way for my purpose and use suitable vocabulary for my audience.

MathematicsMTH 2-17c

MTH 2-17c - Through practical activities, which include the use of technology, I have developed my understanding of the link between compass points and angles and can describe, follow and record directions, routes and journeys using appropriate vocabulary.

Page 11: A coding lesson guide - RM/media/PDFs/What-We-do/Scotland/Glow... · 2015. 11. 27. · has written it. To do this we will change the print block to read ‘centre of the display’.

140 Eastern Avenue, Milton Park, Abingdon, Oxon OX14 4SB T: 08450 700 300 F: 08450 700 400

Call us on 0808 172 9525 or email [email protected]

Find out more

com/lessonideas


Recommended