{ Navigation } | { Deutsch | English } | |||
NeuigkeitenSpieleMinesweeperMastermindSchiebepuzzleMemoryTic Tac ToeTetrisSokobanSnakePacmanOthelloSameGameRoadBlocksLichter ausHighscoresCool StuffTeamTeam - MiselTeam - LXJS-Games FAQGästebuchRechtliches |
coolstuff/minesweeper(misel).txt//usual stuff
#include "colors.inc"
camera { location <5.1,1,-2>
look_at <0,1,0>
}
light_source { < 2, 2, 2> White}
light_source { < 2, 2,-2> White}
light_source { < 2,-2, 2> White}
light_source { < 2,-2,-2> White}
light_source { <-2, 2, 2> White}
light_source { <-2, 2,-2> White}
light_source { <-2,-2, 2> White}
light_source { <-2,-2,-2> White}
//the white background
#declare bg = union
{
plane { y, -200}
plane { z, 200}
plane { x, -200}
pigment { color White}
}
//a coordinate system for a better orientation
#declare cood = union
{
//y
cylinder { <0,-5,0>
<0,5,0>
0.005
pigment { color Blue}
}
//x
cylinder { <-5,0,0>
<5,0,0>
0.005
pigment { color Green}
}
//z
cylinder { <0,0,-5>
<0,0,5>
0.005
pigment { color Red}
}
}
#declare mine = union
{
sphere { <0,0,0>,1 }
cylinder { <-1.6,0,0> <1.6,0,0>,0.25 }
cylinder { <0,-1.6,0> <0,1.6,0>,0.25 }
cylinder { <0,0,-1.6> <0,0,1.6>,0.25 }
cylinder { <-0.8,-0.8,-0.8> < 0.8, 0.8,0.8>,0.15 }
cylinder { <-0.8, 0.8,-0.8> < 0.8,-0.8,0.8>,0.15 }
cylinder { < 0.8,-0.8,-0.8> <-0.8, 0.8,0.8>,0.15 }
cylinder { < 0.8, 0.8,-0.8> <-0.8,-0.8,0.8>,0.15 }
texture { pigment{rgb <0.1,0.1,0.1>}
finish {phong 1}
}
}
object {bg}
object {mine}
|
|||