gamer - technology will save us...hack flappy birds this tutorial will show you how to play around...

15
10 LESSON GUIDES 15 KIT PACK GAMER BUILD & CODE A HAND HELD GAMER 20+ ONLINE PROJECTS 15 KITS PER CLASS 12+ This program is kindly brought to you by Telstra Kids

Upload: others

Post on 22-Jul-2020

7 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: GAMER - Technology Will Save Us...Hack Flappy Birds This tutorial will show you how to play around with and change the settings of the Flappy Bird game that is included in the DIY

10LESSON GUIDES

15 KIT PACK

GAMER

BUILD & CODE A HAND HELD GAMER

20+ONLINE

PROJECTS

15 KITSPER

CLASS12+

This program is kindly brought to you by Telstra Kids

Page 2: GAMER - Technology Will Save Us...Hack Flappy Birds This tutorial will show you how to play around with and change the settings of the Flappy Bird game that is included in the DIY

GAMER

Explore the Gamer through a series of progressive 1 hour sessions using the Tech Will Save Us online MAKE platform.

01 : GETTING STARTED

02 : FIRST ARDUINO PROGRAM

03 : LED MATRIX

04 : COUNTERS

05 : SOUNDS 1

06 : SOUNDS2

07 : MOVING PIXELS 1

08 : MOVING PIXELS 2

09 : PAINTING ON THE DISPLAY

Page 3: GAMER - Technology Will Save Us...Hack Flappy Birds This tutorial will show you how to play around with and change the settings of the Flappy Bird game that is included in the DIY
Page 4: GAMER - Technology Will Save Us...Hack Flappy Birds This tutorial will show you how to play around with and change the settings of the Flappy Bird game that is included in the DIY

GAMER WORKSHOP GUIDE

Welcome to the Gamer Explorer SessionsThis 9 week plan is a curated a set of Makes from the TWSU archive that aims to progress Makers through making with the Gamer It is by no means exhaustive, and deviation in response to your groups interests is encouraged!

MakesThe sessions refer to Makes, which are online step by step tutorials on the TWSU Make platform. We are constantly adding new Makes to the online archive, all of which are free to use. There are loads more online than are used here, and these are great extension or alternative activities.If there is a Make that doesn’t exist that you think should, let us know. If you want it, others probably do too

https://make.techwillsaveus.com

Make AccountAll Makers can set up their own free Make account to help them store their code and track making progress.

ResourcesEvery session requires that Makers have access to:

• A computer installed with the free developing platform, Arduino• A Gamer

Any additional resources needed are listed at the bottom of each session.

CreativityEvery Make has been been designed to create building blocks of knowledge that can then be used as a creative tool to create custom programs.

When things go wrong...We embrace the fact that Making can be as frustrating as it is rewarding, and we hope this is something you can communicate to your Makers too. Making mistakes is a critical part of how we learn, and often allow that ‘Ureka’ moment to happen. Allow the physical and emotional space to make these mistakes.

Cross CurriculumThe very nature of these sessions means that they encompass STEAM through coding, maths, design and physics.

SharingCelebrate your Makers work by sharing with your communityWe always love seeing what people Make, so why not send us a photo of your finished projects for us to share online with our own global maker community at:

[email protected]

EnjoyMaking is fun!

Page 5: GAMER - Technology Will Save Us...Hack Flappy Birds This tutorial will show you how to play around with and change the settings of the Flappy Bird game that is included in the DIY

GAMER 01 : GETTING STARTED

Explore - The different components used to make a gamerUnderstand - How they all fit togetherApply - Assemble your Gamer ready for coding

MAKE: Ready Soldered Gamer (20 minutes)

You’re 20 minutes away from playing and hacking games on your handmade hand-held console. Get ready to MAKE!

Use the online manual either on laptops or together on a shared screen to assembling the Gamer

RESOURCES PER STUDENT/PAIR:Gamer kit Screw driverComputer

MAKE: Install coding software (20 minutes)

Before you start coding, you need to install on your computer the free developing environment software, Arduino.

Notes:

Talk time (10 minutes)

What is the difference between a computer and a micro controllerWhat is an LED Matrix

Page 6: GAMER - Technology Will Save Us...Hack Flappy Birds This tutorial will show you how to play around with and change the settings of the Flappy Bird game that is included in the DIY

GAMER 02: FIRST ARDUINO PROGRAM

Explore - An Arduino SketchUnderstand - How to edit a line of code in a sketchApply - Write your name on the screen using the “printString” Function

MAKE: Write your Name (30 minutes)

Get ready to code your first program: write your name on the Gamer’s screen

Can everyone:• upload their first sketch ?• write their name on the Gamer ?

RESOURCES PER STUDENT/PAIR:GamerComputerUSB cable

INTRO (10 minutes)

In this sessions you will edit a pre-existing sketch to make it print your name on the gamer using the “printString” function.

Notes:

Talk time (10 minutes)

Where do you see “printSting” function in daily use (train departure boards)?How did you find editing the code?Did you find the setup and loop sections in the code?

Page 7: GAMER - Technology Will Save Us...Hack Flappy Birds This tutorial will show you how to play around with and change the settings of the Flappy Bird game that is included in the DIY

GAMER 03 : LED MATRIX

Explore - VariablesUnderstand - How the display variable stores which pixels are on or offApply - Use a matrix in the code to display an image on the Gamer

MAKE: Draw an emoji (30 minutes)

Now you’re going to learn about drawing things on the Gamer’s display.Let’s start with an emoji!

Can everyone:• Successfully edit the code?• Upload the code to the Gamer ?

RESOURCES PER STUDENT/PAIR:GamerComputerUSB cable

INTRO (10 minutes)

When coding, there are often multiple ways of doing things. In the following tutorial, you can will two different ways to change the gamer’s display!

Notes:

Talk time (10 minutes)

Which way of uploading the image did you prefer, and why?What is the benefit of using the matrix?What is the benefit of using the app?

Page 8: GAMER - Technology Will Save Us...Hack Flappy Birds This tutorial will show you how to play around with and change the settings of the Flappy Bird game that is included in the DIY

GAMER 04 : COUNTERS

Explore - How to make a scoring systemUnderstand - How to make a variableApply - Creating a variable to hold and display a changing score

MAKE: Counter (15 minutes)

When you start making games, you’ll need to keep track of your scores! Here’s how you do it.

Can everyone:• make a variable ?• get the score counter to work ?

RESOURCES PER STUDENT/PAIR:GamerComputerUSB cable

INTRO (10 minutes)

In this session, you will create a score variables.You need to tell the Gamer what type they are. They can be numbers, words and more! In this case, score is a number.

You will give it a unique name so you can remember what the variables hold.

You will give it a value. The score starts with 0, then we increase it by 1 every time the gamer loops!

Notes:

Talk time (10 minutes)

Why are scores useful in games?What else could you use a counter for?What other information could a variable hold?

Page 9: GAMER - Technology Will Save Us...Hack Flappy Birds This tutorial will show you how to play around with and change the settings of the Flappy Bird game that is included in the DIY

GAMER 05 : SOUNDS 1

Explore - The piezo buzzer on the GamerUnderstand - How to use numbers in the code to control the buzzerApply - Use the Instruction playTone to tell the Gamer to play a sound

MAKE: Play Sounds (30 minutes)

This time, we’ll use the instruction playTone to tell the Gamer to play a sound.

Complete sections 1 - 18 of the Play Sounds MAKE

Can everyone:• Use the playTone command successfully• Play their melody on the Gamer

RESOURCES PER STUDENT/PAIR:GamerComputerUSB cable

Notes:

Talk time (10 minutes)

Where do we hear sound sequences in our daily livesWhat makes a successful mnemonicWhat are your favourite/worst mnemonics form games/adverts/phone rings

INTRO (10 minutes)

Creating a score counter was easy! You know what’s easier? Playing sounds! In no time, you’ll be composing a hit.

Page 10: GAMER - Technology Will Save Us...Hack Flappy Birds This tutorial will show you how to play around with and change the settings of the Flappy Bird game that is included in the DIY

GAMER 06 : SOUNDS 2

Explore - How to condense your code using listsUnderstand - How to write a list to play notesApply - by composing your own mini melody using a list

MAKE: Play Sounds (30 minutes)

Complete sections 19 - 26 of the Play Sounds MAKE

Can everyone:• use a list to sequence sounds• play their melody on the Gamer

RESOURCES PER STUDENT/PAIR:GamerComputerUSB cable

Notes:

Talk time (10 minutes)

Do both long hand and condensed codes perform the same function?Why is condensing your code beneficial?Why could putting comments in your code be useful?

INTRO (10 minutes)

Last session you played notes by repeating the playTone command. this time you are going to tidy things up by listing the notes you want to play in a list

Page 11: GAMER - Technology Will Save Us...Hack Flappy Birds This tutorial will show you how to play around with and change the settings of the Flappy Bird game that is included in the DIY

GAMER 07 : MOVING PIXELS 1

Explore - The buttonsUnderstand - How to read the buttons using codeApply - Make a pixel move on the screen using the buttons

RESOURCES PER STUDENT/PAIR:GamerComputerUSB cable

MAKE: Move a Character (15 minutes)

Complete sections 1 - 20 of the “Move a character” MAKE

Can everyone:• access the x & y variables ?• move the pixels with up, down, left and right ?

Notes:

Talk time (10 minutes)

What happens to the dotl when you move it off screen?How would you make the dot move further with each button press?How could you stop the dot disappearing off the screen?

INTRO (10 minutes)

Now you know how to draw on the display, let’s use the buttons to change things around!

Define variables x and y to turn display pixel on and off and learn how to change them when the buttons are pressed!

Page 12: GAMER - Technology Will Save Us...Hack Flappy Birds This tutorial will show you how to play around with and change the settings of the Flappy Bird game that is included in the DIY

GAMER 08 : MOVING PIXELS 2

Explore - Building wallsUnderstand - How to constrain variableApply - Build walls so that the dotl can not move off the screen

MAKE: Move a Character (15 minutes)Complete sections 10 - 27 of the “Move a character” MAKE

Can everyone:• constrain the dot on top and bottom of the screen ?• constrain the dot on left and right of the screen ?

RESOURCES PER STUDENT/PAIR:GamerComputerUSB cable

Notes:

Talk time (10 minutes)

What would happen to the x and y variables if you did not constrain them?Think of example of constraint in games?How could you move the walls?

INTRO (10 minutes)

Last session you learnt how to move the pixel with buttons, but you noticed how the dot outside the display? You will now create a walls around the display to constrain the dot.

Page 13: GAMER - Technology Will Save Us...Hack Flappy Birds This tutorial will show you how to play around with and change the settings of the Flappy Bird game that is included in the DIY

GAMER 09 : PAINTING ON THE DISPLAY

Explore - How to light multiple dots on the displayUnderstand - How to use a list of lists variableApply - By making a simple painting on the display game

MAKE: Paint on the display (30 minutes)

Transform the last session into a simple game with a few extra lines of code.

Can everyone:• draw usiing the buttons?• erase the screen ?

RESOURCES PER STUDENT/PAIR:GamerComputerUSB cable

Talk time (10 minutes)

What games use similar code to this?Which simple games could you make with the the simple skills you have learnt?

Notes:

INTRO (10 minutes)

If you’ve finished the “Use the buttons to move things” project, with just a few extra lines of code you can turn it into an image drawer. Ready?

You will use a type of variable called a list of lists. You will create a variable with 8 columns and 8 rows, to represent the screen, and then use the buttons to change the values

Page 14: GAMER - Technology Will Save Us...Hack Flappy Birds This tutorial will show you how to play around with and change the settings of the Flappy Bird game that is included in the DIY

WHAT NEXT...

Now you have learnt some of the core coding building blocks, you can try to set a challenge to design a simple game. Having explored the gamer, it’s capability and the way you can code it, they should have set realistic expectations of what a first project could look like.

Hack Flappy Birds

This tutorial will show you how to play around with and change the settings of the Flappy Bird game that is included in the DIY Gamer library.

Capacitive Touch

Every Gamer has a Capacitive Touch button.

Capacitance is the ability of a human body to store an electrical charge. Any object that can be electrically charged has capacitance. Capacitive sensing uses the human body or other capacitive object as an input.

Have a look at this tutorial to find out more

Multiplayer Infrared Games

Fancy a challenge. This simple tutorial will show you how to use the DIY Gamer Kit’s infrared transmitter and receiver. Once you’ve harnessed its power, you’ll be able to make your own multiplayer game in no time!

When the start button is pressed, we’ll send a message to the other Gamer and get it to play an animation once it’s received it. Remember that you need two Gamers to go through this tutorial! Otherwise, you won’t be able to test your code.

Code Club: Simon Says

These downloadable step by step worksheets will take you through the Simon Says Game to help you understand how a game is made using code, from understanding and creating arrays to display pictures, through to reading the buttons.

Page 15: GAMER - Technology Will Save Us...Hack Flappy Birds This tutorial will show you how to play around with and change the settings of the Flappy Bird game that is included in the DIY