0:00:00.840,0:00:04.680 Unplugged Activity | The Big Event 0:00:07.060,0:00:10.030 This lesson is called "The Big Event" It's all about how 0:00:10.030,0:00:15.969 we can control our programs and actually change[br]the way a program runs on the fly, using events. 0:00:15.969,0:00:21.590 Like the push of a button or like the click[br]of a mouse. For this lesson, you'll be controlled 0:00:21.590,0:00:28.590 with a paper remote control. It's just like[br]a real live video game. An event is an action 0:00:29.390,0:00:33.540 that causes something to happen. It's like[br]when you click the button on a mouse, and 0:00:33.540,0:00:37.810 the web page loads. That's an event. When[br]you touch your screen on a tablet to scroll, 0:00:37.810,0:00:43.840 that's an event also. Events are a great way[br]of letting the user direct your program, whenever 0:00:43.840,0:00:50.840 they need or want to. There are things that[br]happen that we all respond to. 0:00:50.840,0:00:54.840 We feel hungry so we go to the fridge. 0:00:54.840,0:00:57.420 We hear the mailman[br]come, he puts our mail in the mailbox, and 0:00:57.430,0:01:02.640 then we go get our mail. Those are just like[br]the events of pushing a button or moving the 0:01:02.640,0:01:07.860 joystick. They are something that happens[br]that triggers us to do something. Most people 0:01:07.860,0:01:13.189 who program video games, there's this one[br]event that everyone calls "update" and it 0:01:13.189,0:01:20.030 happens 30 or 60 times a second. For video[br]game programmers, that's more important as 0:01:20.030,0:01:24.479 an event than the buttons or the joystick.[br]Because what we tend to do is, the main event 0:01:24.479,0:01:30.539 we're watching for is that tick happening.[br]And then we check the joystick in the tick. 0:01:30.539,0:01:37.539 So we say.. oh? Has somebody pushed the button[br]in this frame? Yes or no? Without events, 0:01:37.749,0:01:44.749 the player couldn't move. The player couldn't[br]jump. You wouldn't be able to control what's 0:01:44.889,0:01:50.530 going on. The video game wouldn't be able[br]to animate anything. It's only because of 0:01:50.530,0:01:56.850 the events of time passing that we're able[br]to make animations and things move.