Rename folder containing data foramt samples
This commit is contained in:
26
test-data/gameConfig.ron
Normal file
26
test-data/gameConfig.ron
Normal file
@ -0,0 +1,26 @@
|
||||
GameConfig( // optional struct name
|
||||
window_size: (800, 600),
|
||||
window_title: "PAC-MAN",
|
||||
fullscreen: false,
|
||||
|
||||
mouse_sensitivity: 1.4,
|
||||
key_bindings: {
|
||||
"up": Up,
|
||||
"down": Down,
|
||||
"left": Left,
|
||||
"right": Right,
|
||||
|
||||
// Uncomment to enable WASD controls
|
||||
/*
|
||||
"W": Up,
|
||||
"A": Down,
|
||||
"S": Left,
|
||||
"D": Right,
|
||||
*/
|
||||
},
|
||||
|
||||
difficulty_options: (
|
||||
start_difficulty: Easy,
|
||||
adaptive: false,
|
||||
),
|
||||
)
|
20
test-data/materials.json
Normal file
20
test-data/materials.json
Normal file
@ -0,0 +1,20 @@
|
||||
{
|
||||
"materials": {
|
||||
"metal": {
|
||||
"reflectivity": 1.0
|
||||
},
|
||||
"plastic": {
|
||||
"reflectivity": 0.5
|
||||
}
|
||||
},
|
||||
"entities": [
|
||||
{
|
||||
"name": "hero",
|
||||
"material": "metal"
|
||||
},
|
||||
{
|
||||
"name": "monster",
|
||||
"material": "plastic"
|
||||
}
|
||||
]
|
||||
}
|
20
test-data/materials.ron
Normal file
20
test-data/materials.ron
Normal file
@ -0,0 +1,20 @@
|
||||
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",
|
||||
),
|
||||
],
|
||||
)
|
12
test-data/shortExample.json5
Normal file
12
test-data/shortExample.json5
Normal file
@ -0,0 +1,12 @@
|
||||
{
|
||||
// comments
|
||||
unquoted: 'and you can quote me on that',
|
||||
singleQuotes: 'I can use "double quotes" here',
|
||||
lineBreaks: "Look, Mom! \
|
||||
No \\n's!",
|
||||
hexadecimal: 0xdecaf,
|
||||
leadingDecimalPoint: .8675309, andTrailing: 8675309.,
|
||||
positiveSign: +1,
|
||||
trailingComma: 'in objects', andIn: ['arrays',],
|
||||
"backwardsCompatible": "with JSON",
|
||||
}
|
4
test-data/simple.json
Normal file
4
test-data/simple.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"a boolean": true,
|
||||
"an array": [3, 2, 1]
|
||||
}
|
20
test-data/standard.ron
Normal file
20
test-data/standard.ron
Normal file
@ -0,0 +1,20 @@
|
||||
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",
|
||||
),
|
||||
],
|
||||
)
|
Reference in New Issue
Block a user