- So far, our objects are unique grey. Now lets make the new world a little bit colorful. Therefor we are using materials and/or textures.
- Construct your own new level as shown in the last station.
- Create new types of objects for the character $ and @ (ie. cone, cylinder).
- Add different colors for every type of object.
Creating the labyrinth is the same procedure as before but in addition we add a material.
Create a new material
Materials in Blender are distinguished by name and exists independent from objects. Therefor it is possible to put one material to different objects.
The new object is allocated to a variable named »obj«.
The function setColor needs tree parameters: object, material and color.
Within setColor the parameters are used to change the given object.