Scratch

Code Roads with Scratch

The sample road designs given below for adding to  scenes of the empty works, and the codes necessary for a car to reach the finish without going out of the road whenever possible. The sample road drawings below are prepared in 480x360 resolution. In other words, you can directly download and apply without changing resolitions to Scratch scenes. With these activities, those who switch from Scratch to environments such as Code.org can be adapted during the transition phase.

For the car to be coded, you can use the sample design below or a design you will make yourself.


Road 1

Tip: To speed up the car, reduce the number of loops and increase the number of steps.

Click for the solution:

https://scratch.mit.edu/projects/374548991/

Road 2

Tip:  Reduce the car size to keep the car on the road. Write less code via using loop.

Click for the solution:

https://scratch.mit.edu/projects/374697904/

Road 3

Tip:  Circumference of a circle is 360 degrees. Part of this road consists of half circles. You can also write less code by defining blocks.

Click for the solution:

https://scratch.mit.edu/projects/374758418/

Road 4

Tip: There are 4 semicircles on this road.

Click for the solution:

https://scratch.mit.edu/projects/374743411/

Road 5

Tip: If you define blocks for vertical and horizontal roads, your job will be easier. You can also use a loop.

Click for the solution:

https://scratch.mit.edu/projects/375871849/

Road 6

Tip: If you define blocks for long and short paths, your job will be easier. You can also use a loop.

Click for the solution:

https://scratch.mit.edu/projects/375935865/


Road 7

Tip:  If you define blocks of turns and fixed-length road sections, your job will be easier.

Click for the solution:

https://scratch.mit.edu/projects/375944231/


Road 8

Tip: Define blocks for turns and fixed roads. Then use the loop. Pay attention to the turning angles.


Click for the solution:

https://scratch.mit.edu/projects/376189333/

Road 9

Tip:  The angle of a circle is 360 degrees. 3/4 flats are used here. Also, the steps require fine tuning.


Click for the solution:

https://scratch.mit.edu/projects/376192292/

701 views
COMMENTS
Ashley Bell
G way is my fovorite