In this chapter we will be creating a drone game called the Shake game.
Before we jump into the code I want to walk you through the overview of the game.
This is an image of the game we will be using a smartphone in this game you will control the drone by
shaking your phone depending on how many times you shake the phone.
The drone will take off or turn or fly left or right you'll fly the drone through a course and compete
the time you finish the course.
It'll be similar to Mario Kart.
We have a ready made course and you compete with other players.
Basically you will connect one drone to one computer if you prefer to compete between true drones.
You will have to purchase another drone and connected with a different computer.
I want you to look at this image so we can have an idea of how we will be connecting the devices.
Your computer will be connected with the drone through Wi-Fi.
In this lesson we will need to connect the computer to a router using a network cable.
If you do not have a port on your computer you may need to get an USP or use SBC adapter cable this
cream colored bar means that the computer and the router will be connected by a physical network cable
the router will be connected to your smartphone using the Wi-Fi.
You can see that there will be a difference in the IP addresses.
The left side will be using one seventy two point one 6 and the right side will be using one ninety
two point one sixty eight point ten one or two.
We will launch the server on the computer using zero point zero point zero your smartphone will be connected
to the server through the router to control the drone we will be using the one ninety two point 168
network.
For those of you who can't prepare the environment shown in this image unfortunately you won't be able
to create the game although it is always good to read codes so it will be helpful to watch the lessons
and learn how the codes work.