Learning about Conditional Selection before using it inside a Game

Slides:



Advertisements
Similar presentations
Summer Computing Workshop. Introduction to Variables Variables are used in every aspect of programming. They are used to store data the programmer needs.
Advertisements

Procedures Mrs. Hornsby’s Class.
Harry Potter Scratch Game
Programming Concept #2 Iteration. Is just a fancy way of saying that you would like something to repeat more than one time. It is used in any modern programming.
Computer & Desk Stretches Approximately 4 Minutes Sitting at a computer for long periods often causes neck and shoulder stiffness and occasionally lower.
Computer & Desk Stretches. Computer & Desk Stretches Approximately 4 Minutes Sitting at a computer for long periods often causes neck and shoulder stiffness.
Mrs. Chapman. Tabs (Block Categories) Commands Available to use Script Area where you type your code Sprite Stage All sprites in this project.
Scratch Programming Session 9 of 10 Review elements to use in stories, games, etc.
Scratch Programming Session 6 of 10 If-then-else statements interactions Final projects specifications.
Overview. Action ! Once more! 1-2 Stand up! 林順松
Racing Car Game Using the keys to control a sprite.
Digital Art in Scratch part 1 Barb Ericson Georgia Tech Oct 2010.
LO: Learn how to develop your game further to include interactions with the device.
Mr. Wortzman. Tabs (Block Categories) Available Blocks Script Area Sprite Stage All sprites in this project.
Fish Chomp. The screen where you can see what happens when you play your game is called the STAGE. The SCRIPT BANK is where the types of instructions.
Using MIT Scratch for Programming and Control Exercise 6 – Creating a Scratch Packman Year 9 ICT Autumn Term 2007.
Scratch Programming Lesson 2 First glance to programming logic.
 There are times when you will want blocks to repeat. Instead of duplicating blocks and ending up with a long script that might be confusing, there.
Year 7 ICT. Classroom rules and behaviour Be on time for the lesson especially after lunch.
Digital Art in Scratch part 1 Barb Ericson Georgia Tech May 2011.
Fish Chomp. The screen where you can see what happens when you play your game is called the STAGE. The SCRIPT BANK is where the types of instructions.
Algorithms Writing instructions in the order they should execute.
CONTROL FLOW The order in which blocks are executed is called the “control flow” of the script So far all our scripts have just executed blocks in the.
Making a Sprite Dance Barb Ericson Georgia Tech June 2011.
Parachute Games. You can purchase a parachute or use a bed sheet. Each person holds on to a part of the parachute and the leader (usually and adult) provides.
The If Block. IF The “if” block can be found in the control tab. The if block means, “IF this happens, THEN do this.” You can put blocks ON the if block.
24 Background Building 25 Computing Terminology, and Speed/Velocity Module 4 Notes: Sensing, Or Operator, Conditional Logic 28 Module 4 Algorithms,
Marble Racer. The screen where you can see what happens when you play your game is called the STAGE. The SCRIPT BANK is where the types of instructions.
Introduction to Computer Programming - Project 2 Intro to Digital Technology.
Using MIT Scratch for Programming and Control Exercise 4 – Cat and Dog game Year 9 ICT Autumn Term 2007.
How to create a basic game in Scratch. The Scratch Stage The Scratch stage is 480 pixels wide and 360 pixels high x increasesx decreases.
Working Quietly. When I’m at school, I do a lot of work at my desk.
1 CSC 221: Computer Programming I Fall 2009 Introduction to programming in Scratch  animation sprites  motion, control & sensing  costume changes 
Lives and Scoring Games Programming in Scratch. Games Programming in Scratch L2 Lives and Scoring Learning Objectives Define a variable Understand the.
Sitting in front of a computer for long periods often causes neck and shoulder stiffness and occasionally lower back pain. Do these stretches every hour.
Computer & Desk Stretches Approximately 4 Minutes
Scratch Programming Cards
FOP: While Loops.
Introduction to Scratch
Broadcasting (Adding a new level)
Games Programming in Scratch
Building with Numbers Module 4: Investigation 3
Building with Numbers Module 4: Investigation 2 Timers and Stopwatches
Scratch: iteration / repetition / loops
Scratch – Simple Programming
Gaming with conditionals
Loopy Motion Control.
CIRCUS: GROUND-BASED SKILLS
Introduction to Coding
I Can Keep My Hands to Myself
Scratch – Simple Programming
Taking Turns Created by Ellen Weber August 2007.
Line Following Behavior
Learning about Conditional Selection
Recap the basics Lesson 1.
School Put photo here. This is my school.
Learning about Conditional Selection
Development Laboratory
Using the sensor Lesson 5.
Gaming with conditionals
Everyday sequence algorithms that develop movement
An Introduction to VEX IQ Programming with Modkit
Recap the basics Lesson 1.
Using the sensor Lesson 5.
LOOK AT THE PICTURE, CLICK AND CHECK
Condition Switches between actions
Scratch – Simple Programming
Presentation transcript:

Learning about Conditional Selection before using it inside a Game

Condition starts action If you are hungry put your hand up If you like computing smile If you are 8 or older Stand Sit

Condition switches between actions If you are a girl Stand Else Bow If you like marmite Wave Frown

Condition stops repeated action Repeat until shout stop Stand Sit Repeat until teacher raises arm Smile Frown Wave once

Sometimes we want the condition to be checked many times so we put it in a forever loop

Condition starts action Forever loop checks the condition over and over again Forever If you are hungry put your hand up If you like computing smile

Condition switches between actions Forever If you are a girl Stand Else Bow Forever loop checks the condition over and over again

Condition stops repeated action Repeat until shout stop Stand Sit Repeat until teacher raises arm Smile Frown Wave once

On the playground there are lots of shapes like these When you get to a shape look at your algorithm to see what actions you should be doing

What algorithms will you write for your friends to do? Forever If touching __________ ___________ if touching _________ ____________ Else Forever If touching __________ ___________ Repeat until touching ________ _____________ What algorithms will you write for your friends to do?

Three stage game design and make Plan how to move and steer a sprite (Purple Planning) Program a sprite to move and steer (Pink Programming) Test and debug movement and steering (Teal Testing) Plan how sprite will respond to colours on the stage Program sprite to respond to colours on the stage Test and debug how the sprite responds to colours Plan any extra additions Program extra additions Test and debug extra additions