First steps in the project
The first steps in the project is to draw the freeway and make "cars" (boxes) spawn and move from one side to the other. This is the progress on this made last week by Conrad.
The texture for the highway is the following:
It is asfalt found at https://thumbs.dreamstime.com/t/asphalt-highway-road-markings-background-41377159.jpg
Here is what we did:
Create a new sprite
Drag the road texture into the sprite inspector
Put 2.2 spacing in x and 1.5 in y
Add a sprite for a car
Add a new component under Car and use Rigidbody 2D.
Set gravity to 0.
Create script and drag the script onto the car element in the left list.
Now the car moves straight in the lane.
No comments:
Post a Comment