1
00:00:00,960 --> 00:00:06,150
This lesson we're going to initiate playing the game, we have the e-mail components, we have the input

2
00:00:06,150 --> 00:00:11,860
text area, which we need to enable for the player to add and start writing their text.

3
00:00:12,120 --> 00:00:18,110
We also need to output wording at random whenever the player hits the start button.

4
00:00:18,480 --> 00:00:26,550
So we've got our console and we are listening for whatever inner text is on the element that triggered

5
00:00:26,880 --> 00:00:27,570
the event.

6
00:00:27,570 --> 00:00:32,600
Listener And that's the button with the inner text of start.

7
00:00:32,970 --> 00:00:37,300
So we see start being output here within the console.

8
00:00:37,780 --> 00:00:46,350
Next, we're going to check to see if inner text is equal to start that we know that the start button

9
00:00:46,350 --> 00:00:50,820
has been hit and we are ready to play the game.

10
00:00:51,270 --> 00:01:00,750
If the inner text is start first, let's grab play text and we're going to take the disabled attribute.

11
00:01:01,730 --> 00:01:08,180
And set that to false, so essentially that will enable the text area to be written tonight and then

12
00:01:08,180 --> 00:01:12,420
we're going to invoke a function called play game, let's create that function.

13
00:01:13,250 --> 00:01:17,950
So there's the function that gets invoked and this is where all of the game play will take place.

14
00:01:18,200 --> 00:01:24,050
Coming up next, I'll show you how we can add in that text, how we can add.

15
00:01:24,830 --> 00:01:30,620
Coming up next, I'll show you how we're going to grab some random text from this wording array and

16
00:01:30,620 --> 00:01:33,590
output it for the player to be able to start typing.

17
00:01:34,470 --> 00:01:40,760
So we refresh start and we see that now it's been enabled, so go ahead and add this into your game.
