21 lines
404 B
Plaintext
21 lines
404 B
Plaintext
Scene( // class name is optional
|
|
materials: { // this is a map
|
|
"metal": (
|
|
reflectivity: 1.0,
|
|
),
|
|
"plastic": (
|
|
reflectivity: 0.5,
|
|
),
|
|
},
|
|
entities: [ // this is an array
|
|
(
|
|
name: "hero",
|
|
material: "metal",
|
|
),
|
|
(
|
|
name: "monster",
|
|
material: "plastic",
|
|
),
|
|
],
|
|
)
|