Friday, September 29, 2017

Report 3. Term Sofia Antreassian and Valentina Lemos

For this deadline we had to create a game called "Driving Game" in Scratch. In this post we are going to explain how we used the blocks and how they work. Also you will be informed about which were our problems and how we fixed it. 

We created a multiplayer game with two cars with different numbers and a speedway called "Driving Game" which has a low difficulty level. We have to use this blocks obligatory and if we don't have one, something has to be wrong. 


At the first time we didn't know how to use the operators, so we asked a partner for help and we understood everything!


 The car number 1 moves with the arrows and the car number 2 with the keys; a, s, d, w. If you press the right arrow (in the car 2 the key d) the car will turn 4 degrees to the right and with the left arrow (key a in the car 2) turns 5 degrees to the left. If you press the up arrow (in the car 2 the key w) the speed will change 0.4 each time you press it and if you press the down arrow (key s in the car 2) the variable for speed changes -0.4 each time you press it.
How the car moves:
                                              
There is 1 speed for each car and the faster the car drives, higher the speed number will be. If the car touches the grass, it will slow down until you drive back up to the track. 
How to make the car go slower on the grass:

The blue car has te variable "laps1". When car crosses the finish line(the black line), the game waits 0.7 seconds and then changes the variable for 1. if we do not put these seconds, they put a lot of laps and we only want one for each race. With the car number 2 it works exactly the same, but the only thing that changes it`s the name of the variable.
How the laps works:


Here are some images of the game:


No comments:

Post a Comment