1
00:00:01,040 --> 00:00:05,870
In this chapter we will be creating a drone game called the Shake game.

2
00:00:05,870 --> 00:00:11,250
Before we jump into the code I want to walk you through the overview of the game.

3
00:00:11,300 --> 00:00:18,620
This is an image of the game we will be using a smartphone in this game you will control the drone by

4
00:00:18,620 --> 00:00:23,410
shaking your phone depending on how many times you shake the phone.

5
00:00:23,450 --> 00:00:31,410
The drone will take off or turn or fly left or right you'll fly the drone through a course and compete

6
00:00:31,430 --> 00:00:33,970
the time you finish the course.

7
00:00:33,970 --> 00:00:35,840
It'll be similar to Mario Kart.

8
00:00:35,890 --> 00:00:40,280
We have a ready made course and you compete with other players.

9
00:00:40,400 --> 00:00:47,450
Basically you will connect one drone to one computer if you prefer to compete between true drones.

10
00:00:47,450 --> 00:00:52,490
You will have to purchase another drone and connected with a different computer.

11
00:00:52,490 --> 00:00:58,660
I want you to look at this image so we can have an idea of how we will be connecting the devices.

12
00:00:58,760 --> 00:01:02,500
Your computer will be connected with the drone through Wi-Fi.

13
00:01:03,830 --> 00:01:09,740
In this lesson we will need to connect the computer to a router using a network cable.

14
00:01:09,740 --> 00:01:17,840
If you do not have a port on your computer you may need to get an USP or use SBC adapter cable this

15
00:01:17,840 --> 00:01:23,750
cream colored bar means that the computer and the router will be connected by a physical network cable

16
00:01:24,890 --> 00:01:29,770
the router will be connected to your smartphone using the Wi-Fi.

17
00:01:30,000 --> 00:01:34,140
You can see that there will be a difference in the IP addresses.

18
00:01:34,140 --> 00:01:41,070
The left side will be using one seventy two point one 6 and the right side will be using one ninety

19
00:01:41,070 --> 00:01:46,670
two point one sixty eight point ten one or two.

20
00:01:46,800 --> 00:01:54,640
We will launch the server on the computer using zero point zero point zero your smartphone will be connected

21
00:01:54,640 --> 00:02:01,710
to the server through the router to control the drone we will be using the one ninety two point 168

22
00:02:01,810 --> 00:02:03,090
network.

23
00:02:03,430 --> 00:02:09,040
For those of you who can't prepare the environment shown in this image unfortunately you won't be able

24
00:02:09,040 --> 00:02:15,970
to create the game although it is always good to read codes so it will be helpful to watch the lessons

25
00:02:15,970 --> 00:02:17,610
and learn how the codes work.
