Wednesday, 1 March 2017


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:


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

modsim.png

Add a sprite for a car

modsim1.png

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