nettoyage des assets
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"actions": [
|
||||
"MoveForward",
|
||||
"MoveBackward"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"bindings": [
|
||||
{
|
||||
"action": "MoveForward",
|
||||
"device": "keyboard",
|
||||
"key": "z"
|
||||
},
|
||||
{
|
||||
"action": "MoveBackward",
|
||||
"device": "keyboard",
|
||||
"key": "s"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"window": {
|
||||
"width": 1280,
|
||||
"height": 720,
|
||||
"fullscreen": false,
|
||||
"vsync": false,
|
||||
"title": "CosmicEngine"
|
||||
},
|
||||
"graphics": {
|
||||
"validationLayers": false,
|
||||
"maxFramesInFlight": 2,
|
||||
"msaa": false
|
||||
},
|
||||
"audio": {
|
||||
"masterGain": 1.0,
|
||||
"musicGain": 1.0,
|
||||
"ambianceGain": 1.0,
|
||||
"uiGain": 1.0
|
||||
},
|
||||
"input": {
|
||||
"mouseSensitivity": 0.1,
|
||||
"invertMouseX": false,
|
||||
"invertMouseY": false,
|
||||
"bindingsPath": "assets/configs/engine/bindings_default.json",
|
||||
"actionsPath": "assets/configs/engine/actions_default.json"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"actions": [
|
||||
"MoveForward",
|
||||
"MoveBackward"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"bindings": [
|
||||
{
|
||||
"action": "MoveForward",
|
||||
"device": "keyboard",
|
||||
"key": "z"
|
||||
},
|
||||
{
|
||||
"action": "MoveBackward",
|
||||
"device": "keyboard",
|
||||
"key": "s"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"window": {
|
||||
"width": 1280,
|
||||
"height": 720,
|
||||
"fullscreen": false,
|
||||
"vsync": false,
|
||||
"title": "My game"
|
||||
},
|
||||
"graphics": {
|
||||
"validationLayers": false,
|
||||
"maxFramesInFlight": 2,
|
||||
"msaa": false
|
||||
},
|
||||
"audio": {
|
||||
"masterGain": 1.0,
|
||||
"musicGain": 1.0,
|
||||
"ambianceGain": 1.0,
|
||||
"uiGain": 1.0
|
||||
},
|
||||
"input": {
|
||||
"mouseSensitivity": 0.1,
|
||||
"invertMouseX": false,
|
||||
"invertMouseY": false,
|
||||
"bindingsPath": "assets/configs/game/bindings_default.json",
|
||||
"actionsPath": "assets/configs/game/actions_default.json"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,269 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"name": { "type": "string", "ID": 101},
|
||||
"description": { "type": "string", "ID": 102},
|
||||
"entities": {
|
||||
"type": "array",
|
||||
"ID": 103,
|
||||
"items": { "$ref": "#/definitions/Entity" }
|
||||
},
|
||||
"entities2D": {
|
||||
"type": "array",
|
||||
"ID": 104,
|
||||
"items": { "$ref": "#/definitions/Entity2D" }
|
||||
}
|
||||
},
|
||||
"required": ["name", "entities"],
|
||||
"definitions": {
|
||||
|
||||
"Entity": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"entityref": { "type": "integer", "ID": 201 },
|
||||
"parent": { "type": ["integer", "null"] , "ID": 202},
|
||||
"name": { "type": "string", "ID": 203 },
|
||||
"description": { "type": "string", "ID": 204 },
|
||||
"children": {
|
||||
"type": "array",
|
||||
"ID": 205,
|
||||
"items": { "type": "integer" }
|
||||
},
|
||||
"components": { "ID": 206, "$ref": "#/definitions/Components" }
|
||||
},
|
||||
"required": ["entityref", "name", "components"]
|
||||
},
|
||||
|
||||
"Entity2D": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"entityref": { "type": "integer", "ID": 207 },
|
||||
"name": { "type": "string", "ID": 208 },
|
||||
"description": { "type": "string", "ID": 209},
|
||||
"components": { "ID": 210, "$ref": "#/definitions/Components2D" }
|
||||
},
|
||||
"required": ["entityref", "name", "components"]
|
||||
},
|
||||
|
||||
"Components": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"transform": { "ID": 2061, "$ref": "#/definitions/Transform" },
|
||||
"renderer": { "ID": 2062, "$ref": "#/definitions/Renderer" },
|
||||
"camera": { "ID": 2063, "$ref": "#/definitions/Camera" },
|
||||
"collider": { "ID": 2064, "$ref": "#/definitions/Collider" },
|
||||
"rigidbody": { "ID": 2065, "$ref": "#/definitions/RigidBody" },
|
||||
"speaker": { "ID": 2066, "$ref": "#/definitions/Speaker" },
|
||||
"script": { "ID": 2067, "$ref": "#/definitions/Script" },
|
||||
"light": { "ID": 2068, "$ref": "#/definitions/Light" }
|
||||
}
|
||||
},
|
||||
|
||||
"Components2D": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"transform": { "ID": 2069, "$ref": "#/definitions/Transform2D" },
|
||||
"renderer": { "ID": 2070, "$ref": "#/definitions/Renderer2D" },
|
||||
"camera": { "ID": 2071, "$ref": "#/definitions/Camera2D" },
|
||||
"collider": { "ID": 2072, "$ref": "#/definitions/Collider2D" },
|
||||
"text": { "ID": 2073, "$ref": "#/definitions/TextRenderer2D"},
|
||||
"script": { "ID": 2074, "$ref": "#/definitions/Script" }
|
||||
}
|
||||
},
|
||||
|
||||
"Vec2": {
|
||||
"type": "array",
|
||||
"items": { "type": "number" },
|
||||
"minItems": 2,
|
||||
"maxItems": 2
|
||||
},
|
||||
|
||||
"Vec3": {
|
||||
"type": "array",
|
||||
"items": { "type": "number" },
|
||||
"minItems": 3,
|
||||
"maxItems": 3
|
||||
},
|
||||
|
||||
"Vec4": {
|
||||
"type": "array",
|
||||
"items": { "type": "number" },
|
||||
"minItems": 4,
|
||||
"maxItems": 4
|
||||
},
|
||||
|
||||
"Transform": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"position": { "ID": 3011, "$ref": "#/definitions/Vec3" },
|
||||
"rotation": { "ID": 3012, "$ref": "#/definitions/Vec3" },
|
||||
"scale": { "ID": 3013, "$ref": "#/definitions/Vec3" }
|
||||
},
|
||||
"required": ["position", "rotation", "scale"]
|
||||
},
|
||||
|
||||
"Transform2D": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"position": { "ID": 4011, "$ref": "#/definitions/Vec2" },
|
||||
"rotation": { "ID": 4012, "type": "number" },
|
||||
"scale": { "ID": 4013, "$ref": "#/definitions/Vec2" },
|
||||
"size": { "ID": 4014, "$ref": "#/definitions/Vec2" },
|
||||
"pivot": { "ID": 4015, "$ref": "#/definitions/Vec2" },
|
||||
"zorder": { "ID": 4016, "type": "integer", "minimum": 0 },
|
||||
"visible": { "ID": 4017, "type": "boolean" }
|
||||
},
|
||||
"required": ["position", "size"]
|
||||
},
|
||||
|
||||
"Renderer": {
|
||||
"type": ["object", "null"],
|
||||
"properties": {
|
||||
"model": { "type": ["string", "null"], "ID": 3021 },
|
||||
"shader": { "type": "string", "ID": 3022 },
|
||||
"albedo": { "type": ["string", "null"], "ID": 3023 }
|
||||
},
|
||||
"required": ["model", "shader"]
|
||||
},
|
||||
|
||||
"Renderer2D": {
|
||||
"type": ["object", "null"],
|
||||
"properties": {
|
||||
"model": { "type": "string", "ID": 4021 },
|
||||
"shader": { "type": "string", "ID": 4022 }
|
||||
},
|
||||
"required": ["model", "shader"]
|
||||
},
|
||||
|
||||
"TextRenderer2D": {
|
||||
"type": ["object", "null"],
|
||||
"properties": {
|
||||
"text": { "type": "string", "ID": 4051 },
|
||||
"shader": { "type": "string", "ID": 4052 },
|
||||
"color": { "$ref": "#/definitions/Vec4", "ID": 4053},
|
||||
"font": { "type": "string", "ID": 4054}
|
||||
},
|
||||
"required": ["text", "shader", "color", "font"]
|
||||
},
|
||||
|
||||
"Camera": {
|
||||
"type": ["object", "null"],
|
||||
"properties": {
|
||||
"fov": { "type": "number", "minimum": 1, "maximum": 179, "ID": 3031 },
|
||||
"near": { "type": "number", "minimum": 0.001, "ID": 3032 },
|
||||
"far": { "type": "number", "minimum": 0.1, "ID": 3033 }
|
||||
},
|
||||
"required": ["fov", "near", "far"]
|
||||
},
|
||||
|
||||
"Camera2D": {
|
||||
"type": ["object", "null"],
|
||||
"properties": {
|
||||
"zoom": { "type": "number", "minimum": 1.0, "ID": 4031 }
|
||||
},
|
||||
"required": ["zoom"]
|
||||
},
|
||||
|
||||
"Collider": {
|
||||
"type": ["object", "null"],
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "integer",
|
||||
"ID": 3041,
|
||||
"enum": [0,1,2,3,4,5]
|
||||
},
|
||||
"size": { "$ref": "#/definitions/Vec3", "ID": 3042 },
|
||||
"radius": { "type": "number", "minimum": 0, "ID": 3043 },
|
||||
"halfHeight": { "type": "number", "minimum": 0, "ID": 3044 }
|
||||
},
|
||||
"required": ["type"],
|
||||
"allOf": [
|
||||
{
|
||||
"if": { "properties": { "type": { "const": 0 } } },
|
||||
"then": { "required": ["size"] }
|
||||
},
|
||||
{
|
||||
"if": { "properties": { "type": { "const": 1 } } },
|
||||
"then": { "required": ["radius"] }
|
||||
},
|
||||
{
|
||||
"if": { "properties": { "type": { "const": 2 } } },
|
||||
"then": { "required": ["radius", "halfHeight"] }
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
"Collider2D": {
|
||||
"type": ["object", "null"],
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "integer",
|
||||
"ID": 4041,
|
||||
"enum": [0,1,2,3]
|
||||
}
|
||||
},
|
||||
"required": ["type"]
|
||||
},
|
||||
|
||||
"RigidBody": {
|
||||
"type": ["object", "null"],
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "integer",
|
||||
"ID": 3051,
|
||||
"enum": [0,1,2]
|
||||
},
|
||||
"mass": { "type": "number", "minimum": 0, "ID": 3052 },
|
||||
"friction": { "type": "number", "minimum": 0, "maximum": 1, "ID": 3053 },
|
||||
"restitution": { "type": "number", "minimum": 0, "maximum": 1, "ID": 3054 }
|
||||
},
|
||||
"required": ["type"]
|
||||
},
|
||||
|
||||
"Speaker": {
|
||||
"type": ["object", "null"],
|
||||
"properties": {
|
||||
"clips": {
|
||||
"type": "array",
|
||||
"ID": 3061,
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"path": { "type": "string", "ID": 30611 },
|
||||
"gain": { "type": "number", "minimum": 0, "ID": 30612 },
|
||||
"pitch": { "type": "number", "minimum": 0, "ID": 30613 },
|
||||
"loop": { "type": "boolean", "ID": 30614 },
|
||||
"spatial": { "type": "boolean", "ID": 30615 }
|
||||
},
|
||||
"required": ["path"]
|
||||
}}
|
||||
},
|
||||
"required": ["clips"]
|
||||
},
|
||||
|
||||
"Light": {
|
||||
"type": ["object", "null"],
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "integer",
|
||||
"ID": 3071,
|
||||
"enum": [0,1,2]
|
||||
},
|
||||
"color": { "$ref": "#/definitions/Vec3", "ID": 3072 },
|
||||
"intensity": { "type": "number", "minimum": 0, "ID": 3073 },
|
||||
"range": { "type": "number", "minimum": 0, "ID": 3074 },
|
||||
"attenuation": { "type": "number", "minimum": 0, "ID": 3075 },
|
||||
"innerangle": { "type": "number", "minimum": 0, "ID": 3076 },
|
||||
"outerangle": { "type": "number", "minimum": 0, "ID": 3077 },
|
||||
"castshadow": { "type": "boolean", "ID": 3078 }
|
||||
},
|
||||
"required": ["type", "color", "intensity", "range", "attenuation", "innerangle", "outerangle", "castshadow"]
|
||||
},
|
||||
|
||||
"Script": {
|
||||
"type": "array",
|
||||
"items": {"type" : "string", "ID": 3079}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user