Unit 2: Introduction to Coding

Slides:



Advertisements
Similar presentations
Alice Learning to program: Part Four Creating Sounds, Making Billboards, Fun with 3-D Text, New Events, and Rotating Objects by Ruthie Tucker and Jenna.
Advertisements

How Tall Are You? Introducing Functions By Jenna Hayes under the direction of Professor Susan Rodger Duke University July 2008 Updates made June 2014 by.
Princess & Dragon Part 2: Teaching a Dragon to Fly—Methods & Properties By Elizabeth Liang under the direction of Professor Susan Rodger Duke University.
Methods Tutorial: Part One By Deborah Nelson Duke University Under the direction of Professor Susan Rodger June 9, 2008.
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.
Let’s Make a Movie Editing, Special Effects, and Movie Finishing.
Alice Learning to program: Part Two by Ruthie Tucker and Jenna Hayes Under the direction of Professor Susan Rodger Duke University, July 2008.
Calendar Browser is a groupware used for booking all kinds of resources within an organization. The software is totally integrated in Outlook. Calendar.
01-Intro-Object-Oriented-Prog-Alice1 Barb Ericson Georgia Institute of Technology Aug 2009 Introduction to Object-Oriented Programming in Alice.
Code Club Session 2 Dance Party. What will we learn ?  How to change the background  How to create animations  How to make objects talk to each other.
Programming with Alice Computing Institute for K-12 Teachers Summer 2011 Workshop.
Windows Movie Maker. Before We Begin.. One of the most important parts of this business is being a product of the product so that you can market yourself.
Alice 2.0 Introductory Concepts and Techniques Project 1 Exploring Alice and Object-Oriented Programming.
Teaching a character to walk in more than one world: Parameters and Inheritance. By Lana Dyck under the direction of Professor Susan Rodger Duke University.
● Click on Start Button ● Go to Programs and click on Photo Story 3.
A Simple Quiz: Ask User Functions. By Lana Dyck under the direction of Professor Susan Rodger Duke University June 2009, added Part 2 July 2011.
Alice Learning to program: Part Two Writing Your Own Methods by Ruthie Tucker and Jenna Hayes Under the direction of Professor Susan Rodger Duke University,
Creating a Historical Tour in Alice By Jenna Hayes May 2010.
Changing Camera Views! Part 1: Set Point of View to By Bella Onwumbiko under the direction of Professor Susan Rodger Duke University July 2013 Updates.
PROGRAMMING IN PYTHON LETS LEARN SOME CODE TOGETHER!
Using Placeholders to Simplify your Methods: Learning Methods, Part 2 By Deborah Nelson Duke University Professor Susan Rodger June 16, 2008.
Headshots in Alice Duke University Professor Susan H. Rodger Gaetjens Lezin July 2008.
Princess & Dragon Part 3: A Knight Comes Riding In—Cameras & Events By Elizabeth Liang under the direction of Professor Susan Rodger Duke University June.
How Tall Are You? Introducing Functions for Alice 3 By Jenna Hayes under the direction of Professor Susan Rodger Duke University July 2008 Updates made.
Getting Started With Alice: The Basics. Step 1: Background Open up Alice, and choose a background for your Alice world. Your world is something you can.
DAY 4. MAKING SOMETHING ‘JUMP’ Simple! Move it a certain amount ‘up’ Glide back to your original spot.
Photostory 3. Create a Picture and Music folder 1.Open your folder in GMS student on the desktop. (NOT IN CITRIX!!) 2.Right click in the screen. 3.Choose.
For those who hate computers.
The Essentials of Alice (Bunny)
Getting Started With Alice: The Basics
With and The Sims are a registered trademark of Electronic Arts, Inc
Learn all about anger and healthy ways to cope!
A Simple Quiz for Alice 3.2:
L.O: To understand how to use the Internet and ICT equipment safely.
An Introduction to Alice (Short Version)
Teaching Characters to Walk: Learning Methods, Part 1
Things that have already happened!
Putting Objects in Motion
Changing Camera Views! Part 1: Set Point of View to By Bella Onwumbiko
Under the direction of Susan Rodger
Changing Color, Using Text Objects, and Random Selection in Alice
Videos For All Classrooms
Let's Race! Typing on the Home Row
Adding and Manipulating Objects
Using Objects in Alice.
UNITY TEAM PROJECT TOPICS: [1]. Unity Collaborate
A Simple Quiz for Alice 3.2:
Alice Variables Pepper.
Free sighed. “I guess you’re right.”
Methods Tutorial: Part Two
Chapter 2: Programming in Alice
Princess & Dragon Part 2: Teaching a Dragon to Fly—Methods & Properties By Elizabeth Liang under the direction of Professor Susan Rodger Duke University.
Go to =>
Scratch for Storytelling
Princess & Dragon Part 3: A Knight Comes Riding In—Cameras & Events
Introduction to Object-Oriented Programming in Alice
How Tall Are You? Introducing Functions
Learning to Program: Part 3 Camera Control, Invisibility and 3-D Text
Tutorial for Arrays and Lists
CSCI N207 Data Analysis Using Spreadsheet
Professor Susan Rodger
Using Alice This is an introduction to Alice..
Headshots in Alice Duke University Professor Susan H. Rodger
Getting Started With Alice: The Basics
Alice and Daisies: Positioning and Moving Objects in Alice
Using Placeholders to Simplify your Methods: Learning Methods, Part 2
Lesson One: Objects in Alice: Positioning and Moving Them
Professor Susan Rodger
under the direction of Professor Susan Rodger
Restricting Events Creating Conditional Events in Alice By Henry Qin
Presentation transcript:

Unit 2: Introduction to Coding Making things happen

Tea Party Coding We are going to use the TeaParty scene that you created for the last unit. Open the file from either the “Recent” or “File System” tab. Save a new version of this file in a new “Unit 2” folder in your Computer Science OneDrive folder. (Use File-Save As). The file should be saved as TeaParty again.

Comments Drag the //comment block to the editor and enter your name, date, and a description of the program. You should do this for all of your programs from now on.

The Storyboard – What We Want to Happen Scene opens with the Mad Hatter and the March Hare gathered around a table with tea and birthday cake. The unbirthday song plays. Alice approaches the table. Alice tells the characters that she enjoyed their singing. They tell her that nobody ever compliments their singing and insist that she has a cup of tea. She apologizes for interrupting their birthday party. They explain that it isn’t their birthday; it is their “unbirthday”. Alice then asks them to explain an “unbirthday”. They then tell her that everyone has 364 “unbirthdays” each year. Alice realizes that it is her “unbirthday” too.

The Storyboard – What We Want to Happen Scene opens with the Mad Hatter and the March Hare gathered around a table with tea and birthday cake. The unbirthday song plays. Alice approaches the table. Alice tells the characters that she enjoyed their singing. They tell her that nobody ever compliments their singing and insist that she has a cup of tea. She apologizes for interrupting their birthday party. They explain that it isn’t their birthday; it is their “unbirthday”. Alice then asks them to explain an “unbirthday”. They then tell her that everyone has 364 “unbirthdays” each year. Alice realizes that it is her “unbirthday” too.

Adding an Audio File Click on this and make sure the Procedures tab is selected. Drag the playAudio method to the editor. Select Import Audio and use the Unbirthday Song file that you should have saved to your Unit 2 folder. By using this procedural method on “this” scene, we are telling the scene to play the song. Test the program by clicking the Run button. The song should play.

The Storyboard – What We Want to Happen Scene opens with the Mad Hatter and the March Hare gathered around a table with tea and birthday cake. The unbirthday song plays. Alice approaches the table. Alice tells the characters that she enjoyed their singing. They tell her that nobody ever compliments their singing and insist that she has a cup of tea. She apologizes for interrupting their birthday party. They explain that it isn’t their birthday; it is their “unbirthday”. Alice then asks them to explain an “unbirthday”. They then tell her that everyone has 364 “unbirthdays” each year. Alice realizes that it is her “unbirthday” too.

Making an Object Move Select alice, and drag the moveToward method onto the editor underneath the playAudio method. Select marchHare as the target and 2.0 as the amount. Run the program. Alice should move when the song is finished. The program happens in order. The next line won’t start until the line before is finished.

Disabling the Song Since its already getting really old hearing that song, let’s disable that line of code. We can enable it later. Right click on the playAudio line and uncheck Is Enabled.

The Storyboard – What We Want to Happen Scene opens with the Mad Hatter and the March Hare gathered around a table with tea and birthday cake. The unbirthday song plays. Alice approaches the table. Alice tells the characters that she enjoyed their singing. They tell her that nobody ever compliments their singing and insist that she has a cup of tea. She apologizes for interrupting their birthday party. They explain that it isn’t their birthday; it is their “unbirthday”. Alice then asks them to explain an “unbirthday”. They then tell her that everyone has 364 “unbirthdays” each year. Alice realizes that it is her “unbirthday” too.

Making an Object Talk Select alice, and drag the say method onto the editor underneath the moveTo method. Select Custom TextString and then enter “I enjoyed your singing”. You can select add detail if you want to change the look or the duration that the bubble stays on the screen.

The Storyboard – What We Want to Happen Scene opens with the Mad Hatter and the March Hare gathered around a table with tea and birthday cake. The unbirthday song plays. Alice approaches the table. Alice tells the characters that she enjoyed their singing. They tell her that nobody ever compliments their singing and insist that she has a cup of tea. She apologizes for interrupting their birthday party. They explain that it isn’t their birthday; it is their “unbirthday”. Alice then asks them to explain an “unbirthday”. They then tell her that everyone has 364 “unbirthdays” each year. Alice realizes that it is her “unbirthday” too.

Making an Object Talk Now you try! Make the characters have the following dialog. You may want some of the longer statements to have a longer duration, or break them into parts. Mad Hatter – We never get compliments. You must have a cup of tea! Alice – Sorry for interrupting your birthday party. March Hare – The is not a birthday party. This is an unbirthday. Alice – Unbirthday? Mad Hatter – Statistics prove, prove that you’ve got one birthday. One birthday every year, but there are 364 unbirthdays. That’s exactly why we are gathered here to cheer. Alice – Well I guess it’s my unbirthday too!

Final Details Make Alice jump up and down a few times at the end. Hint: You want her to move up and down. Adjust the durations if you want her to jump faster. When the rest of the program is how you want it, enable the playAudio method to make the song play. Challenge: Make the Mad Hatter and the March Hare dance to the song. You may need to explore the Do Together, Do In Order, and Count blocks to make the dancing happen at the same time as the song.