1 of 7

Lesson 2.6.D: Break Out Game demonstration

Microsoft Philanthropies TEALS Program

Introduction to Computer Science

2 of 7

Let's look at the starter code.

3 of 7

We need a scoreboard for our game.

4 of 7

We can do that by creating a scoreboard sprite. We can use turtle graphics to write out the score.

5 of 7

We will broadcast show score whenever something changes.

6 of 7

Design: Why am I using broadcast show score instead of broadcast show score and wait?

  • People measure the passing of time in seconds.
  • Humans don't notice the difference between .1 and .5 seconds.
  • Computers measure time in milliseconds.
  • To a computer .5 seconds is a very long time.

We can broadcast show score and not care if it gets delayed because your user won't even notice.

7 of 7

2.6.D: Debrief