Lee Wei Xiong
Pacman Exercise
#Pacman Code
Projection "perspective" "fov" 25
Translate 0 0 5
LightSource "pointlight"
"from" [1 0 3]
"intensity" [5]
WorldBegin
AttributeBegin
Color [1 1 0]
Translate 0 0 0
Rotate 45 0 0 1
Disk 0.5 1 270
AttributeEnd
AttributeBegin
Color [0 0 0]
Translate -0.01 0.36 -2
Rotate 360 0 0 1
Disk 0.5 0.07 360
AttributeEnd
AttributeBegin
Color [1 1 1]
Translate 0.5 0 0
Rotate 360 0 0 1
Sphere 0.08 -1 1 360
AttributeEnd
AttributeBegin
Color [1 1 1]
Translate 0.9 0 0
Rotate 360 0 0 1
Sphere 0.08 -1 1 360
AttributeEnd
AttributeBegin
Color [1 1 1]
Translate 1.3 0 0
Rotate 360 0 0 1
Sphere 0.08 -1 1 360
AttributeEnd
WorldEnd

No comments:
Post a Comment