And this lesson we will go onto the drone games.
Start the game by clicking on there.
Go ahead and try out the games on your app before you see this video.
Once you finish the game you can use this video to check how I cleared the game or start from level
1
first.
I set the drone to take off then fly forward two tiles to reach the pad once the drone gets to the pad.
I landed on the pad then take off again fly three tiles back to reach the goal.
Now I'll click on press to start to start the process.
You'll see the drone flying to tiles forward then landing on the pad.
The drone will take off from the pad again and head back three tiles to the goal.
That was the process I set for level 1 1.
Now let's go on to Level 2.
This level is also quite easy.
You have to be careful and check on which way the drone is facing.
You can see that the drone is facing the right side of your screen.
That been said to get to the pad.
We need to fly to the left to head to the goal.
We need to fly three tiles to the right as we go through this process.
The drone will be able to fly into the goal.
You can see that we got three stars to get three stars.
You need to limit the number of blocks used and the accuracy of the motions.
You should try to avoid rotating the drone to cut back on the number of blocks.
Now let's go on to Level Three.
This is how I set the blocks.
This level is a bit complicated.
You need to avoid the obstacles.
Grab the gun and destroy the bomb to get to the goal.
First we take off fly up and move forward to the tile where the gun is fly down and equipped the gun.
We rotate the drone to face the bomb and fly a tile left to be in front of the bomb and fire.
Once the path to the goal is cleared we fly to the goal without rotating here.
We successfully received three stars in level four we might need to use the function and limit the number
of blocks to receive three stars.
This is how I set the box.
You might want to pause for a moment to check how the blocks are set.
In my case I created a function which lets the drone fly in a zigzag pattern this pattern will be repeated
twice.
Let's see how the drone flies.
First the drone will take off fly a tile forward and then move to the right and land on the pad.
Now it will take off no fly two times left then a tile forward to land on the next pad.
Again it will take off and fly a tile to the right.
This is the pattern that I made and this will be repeated again so that the drone goes on landing on
all the pad after completing the pattern.
The drone will fly into the goal.
This pattern is not the only way to get to the goal.
So you might want to think of other variations of the patterns.
Let's go on to the last level five and this level we need to fly.
Avoiding the obstacles by checking the route.
You might notice that we could be making a pattern again.
This is how I set the blocks.
You can pause the video to check out how the blocks work in this level.
I also created a function which will be repeated twice.
First the drone takes off and flies forward.
Then it flies right where the pads are next.
The drone will fly back to tiles and land on the pad.
Again it takes off to the next pad flying four tiles forward then flies back to the middle of the path.
The drone will repeat the pattern and land on the next two paths by creating a pattern.
You can set it as a function and repeat it.
This will limit the numbers of blocks.
You need to use
we just went through all the levels my blocks may have been a bit different from yours but it's OK.
There is no single correct answer.
It's great to see the variety.
By planning these games I hope you got an idea on how the drones will be flying as we went through the
contents on the app.
We'll leave that app for now and go onto programming the drones with python from our next lesson.