Introduction to TouchDevelop

Slides:



Advertisements
Similar presentations
Space Man Sam: Grammar Mistakes By Aleis Murphy Duke University, Under the direction of Professor Susan Rodger July 2010.
Advertisements

Tips for New Mac Users 20 simple tips to make using a Mac quicker and easier.
Robot C Ready, SET, Go! Workshop SDSU, Fall 2013.
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.
Introduction to TouchDevelop
What is Scratch? Scratch as Logo Dr. Ben Schafer Department of Computer Science University of Northern Iowa.
Goals and Objectives Brief Description: SMART board Goal: Effective Delivery of Instruction Using SMART board Objectives: 1. To provide instructors.
Introduction to TouchDevelop
Presentation Software EDTS100 Lecture 7. Presentation Software Some Options KidPix MicroWorlds PowerPoint Frontpage Kahootz.
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.
3–D Helium Molecule Tutorial Alice Project Duke University Professor Susan H. Rodger Gaetjens Lezin June 2008.
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!
Logo For beginners By Dali Matthews 9S What is logo?
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.
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?
Hackety Hack! Written by Krystal Salerno Presented by _______________.
Boxes. SOUNDBOARD Objective: Tap the boxes to play sounds! Demo:
Using MIT Scratch for Programming and Control Programming 9.
Using the Python Turtle
Computer Programming.
Broadcasting (Adding a new level)
Introduction to Python
Ozoblockly Lesson 03 Beginner Programs
Week 3 DO NOW QUESTIONS.
LOGO BY Kaotip 9S.
How to Start This PowerPoint® Tutorial
BMXP Operation Memo One Time Cutting.
Impress presentation for 1st Level of Secondary Education Students which objective is to learn how to use Impress to make different presentations. Presentation.
Microsoft® Small Basic
Tables, Smart Art and Templates
Learning to program with Logo
Hackety Hack! [Krystal Salerno].
Introduction to.
Explain what touch develop is to your students:
Graph Paper Programming
Introduction to Coding
Introduction to TouchDevelop
Introduction to TouchDevelop
Creating Functions with Parameters
Recap the basics Lesson 1.
Introduction to TouchDevelop
Go to =>
Mod 2 Lesson 2 Repeating Debugging
A few tricks to take you beyond the basics of Microsoft Office
Mod 2 Lesson 2 Repeating with loops
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.
Explain what touch develop is to your students:
Recap the basics Lesson 1.
creating a ecosystems model in net logo
Using MIT Scratch for Programming and Control Exercise 5 – Drawing with Scratch Year 9 ICT Autumn Term 2007.
Presentation transcript:

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

Learning objectives To instruct a turtle to create simple shapes using basic code. Created by S. Johnson - www.touchdevelop.weebly.com

Getting started Open the TouchDevelop app by visiting http://touchdevelop.com/ Login to your account Tap “Create Script” Choose “turtle drawings” Created by S. Johnson - www.touchdevelop.weebly.com

Getting started …. Give your script a name Click on “create” 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 to select it 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 Tip: If you can’t see the forward button, click on the button to cycle through all the available options. 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 the 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 to select it. Tap on the in the lower right keyboard. Tap on left turn. If you can’t see the left turn button, click on the 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 exactly 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 Now that you have mastered drawing a square, let's look at ways to 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 to select it 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 the 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 (see below). 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 you’ve mastered the basics, why not have a go at designing your own shapes! Here’s some ideas to get you started: Created by S. Johnson - www.touchdevelop.weebly.com