WEBVTT

0
00:00.480 --> 00:01.050
Hey guys,

1
00:01.050 --> 00:06.050
welcome to Day 19 of 100 Days of Code. Today

2
00:06.150 --> 00:09.060
we're going to be learning more about turtle graphics,

3
00:09.330 --> 00:14.220
but we're also going to look at event listeners, higher order functions, state,

4
00:14.310 --> 00:16.950
and multiple instances of an object.

5
00:17.160 --> 00:21.540
And we're going to be using this knowledge to build a whole bunch of games. We're

6
00:21.540 --> 00:24.960
going to be making Etch-a-Sketch, one of my favorite childhood toys.

7
00:25.320 --> 00:30.320
And this game is going to allow us to use the up and down arrows to move our

8
00:30.360 --> 00:32.040
turtle forwards and back

9
00:32.370 --> 00:37.370
and then we can turn our turtle clockwise and anticlockwise to continue

10
00:38.640 --> 00:39.270
drawing.

11
00:39.270 --> 00:44.270
So we can use this to create circles or to create lines.

12
00:46.140 --> 00:50.430
And we can basically create drawings using our turtle program.

13
00:51.060 --> 00:51.660
In addition,

14
00:51.660 --> 00:56.660
we're also going to be making a turtle racing game where we will get to bet on

15
00:56.820 --> 00:59.850
the color of a turtle who will win the race.

16
01:00.270 --> 01:02.850
And then once we click okay to the popup,

17
01:03.150 --> 01:08.150
then all of our turtles go to the starting line and they start moving at a

18
01:08.340 --> 01:09.360
random pace.

19
01:09.990 --> 01:14.250
And then once the first turtle hits the right edge of the screen,

20
01:14.520 --> 01:19.520
it will be declared the winner and we will get to see if our turtle won or not.

21
01:20.340 --> 01:24.300
So at the moment, the red turtle is not looking like it's going to make it.

22
01:24.500 --> 01:28.010
<v 1>I think the orange is probably-- Oh, the yellow's overtaking it.</v>

23
01:30.500 --> 01:34.040
<v 0>And there we go. We lose. The purple turtle</v>

24
01:34.140 --> 01:36.920
was the winner of the race. So I hope you're

25
01:37.130 --> 01:41.660
as excited as I am to build these projects together. Once you're ready,

26
01:41.690 --> 01:46.280
head over to the next lesson and let's learn about how we can listen to key

27
01:46.280 --> 01:47.810
strokes on the keyboard.