Introduction to TouchDevelop

Slides:



Advertisements
Similar presentations
Create a Simple Game in Scratch
Advertisements

Getting started with LEGO NXT Mindstorms software This is intended to be a short introduction to the LEGO Mindstorms software and programming the LEGO.
Tips for New Mac Users 20 simple tips to make using a Mac quicker and easier.
Flash animation For beginners. Lesson objectives To understand how to animate a ball To understand how to loop animations To learn how to use animation.
Introduction to TouchDevelop
Super Logo. Key Instructions Pendown penup Forward 50 ( this number can change) Right 90 ( this number can change as well) Now try and draw a Early finishers,
Mrs. Chapman. Tabs (Block Categories) Commands Available to use Script Area where you type your code Sprite Stage All sprites in this project.
METHODS!.  A method is a sequence of instructions or behaviors that will be carried out when requested.  You can use them to create new methods so that.
What is Scratch? Scratch as Logo Dr. Ben Schafer Department of Computer Science University of Northern Iowa.
Introduction to TouchDevelop
StarLogoTNG 101 Treasure Hunt Game Unit Lesson 3: Treasures and Hazards.
Introduction to Scratch!
Mini Project II – Drawing Machine
LOGO SOFTWARE BY: SAVE 9S. INTRODUCTION Logo is a software that can be found at : Shared area> High School > ICT > take home software > LOGO32. This is.
Introducing Scratch the Cat
Art 321 Lecture 7 Dr. J. Parker. Programming In order to ‘make things happen’ on a computer, you really have to program it. Programming is not hard and.
Introduction to Algorithms using Netlogo. What’s an Algorithm Definitions of Algorithm on the Web: –A procedure or formula for solving a problem.
1 Turtle Graphics and Math Functions And how you can use them to draw cool pictures!
Introduction to TouchDevelop
Logo For beginners By Dali Matthews 9S What is logo?
An introduction to Logo Mike Warriner Engineering Director, Google Note: This course is not an endorsement of Logo by Google. All views in this document.
Introduction to Scratch Scratch as Logo Dr. Ben Schafer Department of Computer Science University of Northern Iowa.
Introduction to Using the Notebook 10 Software for SMART Board Day 2 LIVINGSTON PARISH PUBLIC SCHOOLS Facilitated by S. Waltman.
Loops & Graphics IP 10 Mr. Mellesmoen Recall Earlier we wrote a program listing numbers from 1 – 24 i=1 start: TextWindow.WriteLine(i) i=i+1 If.
Photo Story 3 Create a movie in 8 easy steps!. To begin a new story click Next. To edit a story already in progress, choose “Edit a Project”. Then choose.
1 Project designed and created by M. Shajith Kumar.
Getting started with the turtle Find the latest version of this document at
From last time… Explore the blue commands from the motion menu Find at least three ways to get the sprite to move to the UPPER LEFT corner.
Introduction to Text Based Coding. We’re learning to explore how text based programming works You will display and enter text into a window You will use.
BEGINNER FLL PROGRAMMING WORKSHOP BY DROIDS ROBOTICS & EV3LESSONS.
Introduction to TouchDevelop Lesson 3 – Comments & Lists Created by S. Johnson
Turtle Graphics Lesson 2 1. There are 3 homeworks to complete during the six lessons of this unit. Your teacher will let you know when a homework has.
Functions. functions: a collection of lines of code with a name that one can call. Functions can have inputs and outputs.
Search for it on your computer
LOGO WHAT IS IT? HOW TO USE IT AND HOW USEFUL CAN IT BE?
Thurso High School Design and Technology Tutorial Two Dice.
Hackety Hack! Written by Krystal Salerno Presented by _______________.
Using MIT Scratch for Programming and Control Programming 9.
Using the Python Turtle
Broadcasting (Adding a new level)
Introduction to Python
Scratch for Interactivity
Ozoblockly Lesson 03 Beginner Programs
Week 3 DO NOW QUESTIONS.
LOGO BY Kaotip 9S.
Microsoft® Small Basic
Learning to program with Logo
Introduction to.
Introduction to Coding
Introduction to TouchDevelop
Introduction to TouchDevelop
Scratch: selection / branching/ if / If…else / compound conditionals / error trapping by Mr. Clausen.
Creating Functions with Parameters
The RGB LED.
Go to =>
Introduction to TouchDevelop
Go to =>
Go to =>
Go to =>
POWER POINT WHY HAVE WE USE THIS PROGRAM? TO SHOW YOUR STUDY..
Mod 2 Lesson 2 Repeating Debugging
Mod 2 Lesson 2 Repeating with loops
Lesson 2.
Explain what touch develop is to your students:
Explain what touch develop is to your students:
Using Logo and Logic This presentation uses a version of Logo called StarLogo available through MIT. It can be downloaded for free and installed on your.
creating a ecosystems model in net logo
Getting started with LEGO EV3 Mindstorms software
Lesson Six Drawing.
Presentation transcript:

Introduction to TouchDevelop Lesson 1 – Turtle Power Created by S. Johnson - www.touchdevelop.weebly.com

WALT (We Are Learning To) To code (using TouchDevelop) WILF (What I’m Looking For) Control motion by specifying the number of steps to travel, direction and turn. Specify types of rotation giving the number of degrees Combine the use of pens with movement to create interesting effects. Created by S. Johnson - www.touchdevelop.weebly.com

Getting started Click here to get started: https://www.touchdevelop.com/evzp Tap “tweak it” Created by S. Johnson - www.touchdevelop.weebly.com

Moving your Turtle The turtle has four basic moves: forward, back, left turn and right turn. The turtle drawings template already has a little bit of code to get you started. Tap the run button to see what the code does. Created by S. Johnson - www.touchdevelop.weebly.com

Drawing a square First let's tell the turtle to move forward 200 steps. Go to ▷ main() Tap on the last line of code Tap on the + button below the last line Created by S. Johnson - www.touchdevelop.weebly.com

Drawing a square continued 1… Tap on the symbol in the lower right keyboard Tap on the button Help: If you can’t see the forward button, click on the blue arrow Created by S. Johnson - www.touchdevelop.weebly.com

Drawing a square continued 2… Your code should look like this: Use the number pad to change 0 to 200 Run your script to see what happens Created by S. Johnson - www.touchdevelop.weebly.com

Drawing a square continued 3… The next step is to turn your turtle 90 degrees to the left. Go back to ▷main() Tap on the last line of code Tap on the in the lower right keyboard. Tap on left turn. If you can’t see the left turn button, click on the blue arrow button Use the number pad to change 0 to 90 Run the script to see what happens Created by S. Johnson - www.touchdevelop.weebly.com

Drawing a square continued 4… Add the code to move the turtle forward 200 steps. Run the script to see what happens. Created by S. Johnson - www.touchdevelop.weebly.com

Drawing a square continued 5… Add the code to turn the turtle left 90 degrees and move forward 200 steps one last time. Add one more left turn so that turtle finishes where it started. Run the script to see what happens. Congratulations! You have drawn a square. Created by S. Johnson - www.touchdevelop.weebly.com

TouchDevelop Turtle Challenge Customizing your Turtle Created by S. Johnson - www.touchdevelop.weebly.com

Changing the Pen Size Let's customize your turtle! The first thing you can change is the size of the pen: Go to ▷main() Tap on the first line of code Tap on the + button below the line you have just selected Created by S. Johnson - www.touchdevelop.weebly.com

Changing the Pen Size continued… Add a new line at the beginning of your script to change the thickness of the pen to 5. Tap on the symbol in the lower right keyboard Tap on set pen size. If you can’t see the set pen size button, click on the button. Use the number pad to change 0 to 10. Run your script to see what happens. Created by S. Johnson - www.touchdevelop.weebly.com

Changing the Pen Colour The sample code already contains the command to change the pen colour. Did you spot it? Find the line containing the code “set pen color” Tap the word  random so that it is highlighted in green: Created by S. Johnson - www.touchdevelop.weebly.com

Changing the Pen Colour Continued… Tap the cut button. Choose a new colour from the lower right keyboard. Created by S. Johnson - www.touchdevelop.weebly.com

Pen Up or Pen Down? Sometimes you may want to move the turtle without it drawing a line, just like lifting the pen off the page. To lift the pen up use the code: To place then pen down use the code: Created by S. Johnson - www.touchdevelop.weebly.com

TouchDevelop Turtle Challenge Fun with Loops Created by S. Johnson - www.touchdevelop.weebly.com

Fun with Loops Making the turtle create a square was pretty easy but also involved typing a lot of code! Thankfully, there is a better way! Instead of re-typing the same code 4 times, we can repeat it 4 times using a for loop. Go back to ▷main() Delete all the code by selecting each line and tapping cut. Add a new line. Tap on for in the blue section of the lower right keyboard. Created by S. Johnson - www.touchdevelop.weebly.com

Fun with Loops Continued 1… Enter 4 using the number pad Tap on do nothing under the for command (This is where the code that needs to be repeated goes) Add the following 2 lines of code: Created by S. Johnson - www.touchdevelop.weebly.com

Fun with Loops Continued 2… Your code should now look like this: Run your script to see what happens. Can you explain what the code is doing? Now let's change some of the values! Created by S. Johnson - www.touchdevelop.weebly.com

Fun with Loops Continued 2… Go back to ▷main() Change the 4 in the for loop to an 8 Change 200 in the forward command to 50 Change 90 degrees in the left turn command to 45 degrees. Run your script to see what happens. What other shapes can you make? Created by S. Johnson - www.touchdevelop.weebly.com

TouchDevelop Turtle Challenge Created by S. Johnson - www.touchdevelop.weebly.com

Let's get creative Now try making your own shapes! Here’s some ideas to get you started: Created by S. Johnson - www.touchdevelop.weebly.com