mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-27 16:17:12 +03:00
Added Wren scripting with module system 📚
Added Input pressed, released system Added interface button support with wren onclick callback
This commit is contained in:
62
Editor/resources/Scenes/level.scene
Normal file
62
Editor/resources/Scenes/level.scene
Normal file
@@ -0,0 +1,62 @@
|
||||
{
|
||||
"Entities": [
|
||||
{
|
||||
"GetComponent<NameComponent>()": {
|
||||
"Name": "Camera"
|
||||
},
|
||||
"GetComponent<ParentComponent>()": {
|
||||
"HasParent": false,
|
||||
"Type": "ParentComponent"
|
||||
},
|
||||
"GetComponent<TransformComponent>()": {
|
||||
"Rotation": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"Scale": {
|
||||
"x": 1.0,
|
||||
"y": 1.0,
|
||||
"z": 1.0
|
||||
},
|
||||
"Translation": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"Type": "TransformComponent"
|
||||
}
|
||||
}
|
||||
],
|
||||
"Name": "",
|
||||
"m_Environement": {
|
||||
"AmbientColor": {
|
||||
"w": 1.0141871010880041e-38,
|
||||
"x": 4.489836626909252e+21,
|
||||
"y": 7.618957098799247e+31,
|
||||
"z": 1.0141871010880041e-38
|
||||
},
|
||||
"ProceduralSkybox": {
|
||||
"AtmosphereRadius": 6380000.0,
|
||||
"MieScattering": {
|
||||
"x": 1.9999999494757503e-05,
|
||||
"y": 1.9999999494757503e-05,
|
||||
"z": 1.9999999494757503e-05
|
||||
},
|
||||
"RayleighScattering": {
|
||||
"x": 5.80000005356851e-06,
|
||||
"y": 1.3500000022759195e-05,
|
||||
"z": 3.310000101919286e-05
|
||||
},
|
||||
"SunDirection": {
|
||||
"x": 0.20000000298023224,
|
||||
"y": 0.9591699838638306,
|
||||
"z": 0.20000000298023224
|
||||
},
|
||||
"SunIntensity": 100.0,
|
||||
"SurfaceRadius": 6360000.0
|
||||
},
|
||||
"VolumetricFog": 0.949999988079071,
|
||||
"VolumetricStepCount": 100.0
|
||||
}
|
||||
}
|
||||
108
Editor/resources/Scenes/test.scene
Normal file
108
Editor/resources/Scenes/test.scene
Normal file
@@ -0,0 +1,108 @@
|
||||
{
|
||||
"Entities": [
|
||||
{
|
||||
"NameComponent": {
|
||||
"Name": "Trenchbroom map"
|
||||
},
|
||||
"ParentComponent": {
|
||||
"HasParent": false
|
||||
},
|
||||
"QuakeMapComponent": {
|
||||
"HasCollisions": false,
|
||||
"Path": "C:\\Dev\\Nuake\\Editor\\resources\\Maps\\texture_test.map"
|
||||
},
|
||||
"TransformComponent": {
|
||||
"Rotation": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"Scale": {
|
||||
"x": 1.0,
|
||||
"y": 1.0,
|
||||
"z": 1.0
|
||||
},
|
||||
"Translation": {
|
||||
"x": 9.199999809265137,
|
||||
"y": 5.599999904632568,
|
||||
"z": 0.0
|
||||
},
|
||||
"Type": "TransformComponent"
|
||||
}
|
||||
},
|
||||
{
|
||||
"LightComponent": {
|
||||
"CastShadows": true,
|
||||
"Color": {
|
||||
"x": 1.0,
|
||||
"y": 1.0,
|
||||
"z": 1.0
|
||||
},
|
||||
"Direction": {
|
||||
"x": 0.20000000298023224,
|
||||
"y": 0.9591699838638306,
|
||||
"z": 0.20000000298023224
|
||||
},
|
||||
"IsVolumetric": false,
|
||||
"Strength": 10.0,
|
||||
"SyncDirectionWithSky": true,
|
||||
"Type": 0
|
||||
},
|
||||
"NameComponent": {
|
||||
"Name": "Light"
|
||||
},
|
||||
"ParentComponent": {
|
||||
"HasParent": false
|
||||
},
|
||||
"TransformComponent": {
|
||||
"Rotation": {
|
||||
"x": 0.0,
|
||||
"y": -0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"Scale": {
|
||||
"x": 1.0,
|
||||
"y": 1.0,
|
||||
"z": 1.0
|
||||
},
|
||||
"Translation": {
|
||||
"x": 7.035792350769043,
|
||||
"y": 5.795107364654541,
|
||||
"z": -0.9431453943252563
|
||||
},
|
||||
"Type": "TransformComponent"
|
||||
}
|
||||
}
|
||||
],
|
||||
"Name": "",
|
||||
"m_Environement": {
|
||||
"AmbientColor": {
|
||||
"w": 0.0,
|
||||
"x": null,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"ProceduralSkybox": {
|
||||
"AtmosphereRadius": 6380000.0,
|
||||
"MieScattering": {
|
||||
"x": 1.9999999494757503e-05,
|
||||
"y": 1.9999999494757503e-05,
|
||||
"z": 1.9999999494757503e-05
|
||||
},
|
||||
"RayleighScattering": {
|
||||
"x": 5.80000005356851e-06,
|
||||
"y": 1.3500000022759195e-05,
|
||||
"z": 3.310000101919286e-05
|
||||
},
|
||||
"SunDirection": {
|
||||
"x": 0.20000000298023224,
|
||||
"y": 0.9591699838638306,
|
||||
"z": 0.20000000298023224
|
||||
},
|
||||
"SunIntensity": 100.0,
|
||||
"SurfaceRadius": 6360000.0
|
||||
},
|
||||
"VolumetricFog": 0.949999988079071,
|
||||
"VolumetricStepCount": 100.0
|
||||
}
|
||||
}
|
||||
70
Editor/resources/Scenes/test.scene.scene
Normal file
70
Editor/resources/Scenes/test.scene.scene
Normal file
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"Entities": [
|
||||
{
|
||||
"CameraComponent": {
|
||||
"CameraInstance": {
|
||||
"AspectRatio": 1.7777777910232544,
|
||||
"Exposure": 1.0,
|
||||
"Fov": 88.0,
|
||||
"Speed": 1.0,
|
||||
"m_Type": 1
|
||||
}
|
||||
},
|
||||
"NameComponent": {
|
||||
"Name": "Camera"
|
||||
},
|
||||
"ParentComponent": {
|
||||
"HasParent": false
|
||||
},
|
||||
"TransformComponent": {
|
||||
"Rotation": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"Scale": {
|
||||
"x": 1.0,
|
||||
"y": 1.0,
|
||||
"z": 1.0
|
||||
},
|
||||
"Translation": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"Type": "TransformComponent"
|
||||
}
|
||||
}
|
||||
],
|
||||
"Name": "",
|
||||
"m_Environement": {
|
||||
"AmbientColor": {
|
||||
"w": 9.275544859982045e-39,
|
||||
"x": 1.0193902624158886e-38,
|
||||
"y": 8.449025394560124e-39,
|
||||
"z": 9.275544859982045e-39
|
||||
},
|
||||
"ProceduralSkybox": {
|
||||
"AtmosphereRadius": 6380000.0,
|
||||
"MieScattering": {
|
||||
"x": 1.9999999494757503e-05,
|
||||
"y": 1.9999999494757503e-05,
|
||||
"z": 1.9999999494757503e-05
|
||||
},
|
||||
"RayleighScattering": {
|
||||
"x": 5.80000005356851e-06,
|
||||
"y": 1.3500000022759195e-05,
|
||||
"z": 3.310000101919286e-05
|
||||
},
|
||||
"SunDirection": {
|
||||
"x": 0.20000000298023224,
|
||||
"y": 0.9591699838638306,
|
||||
"z": 0.20000000298023224
|
||||
},
|
||||
"SunIntensity": 100.0,
|
||||
"SurfaceRadius": 6360000.0
|
||||
},
|
||||
"VolumetricFog": 0.949999988079071,
|
||||
"VolumetricStepCount": 100.0
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user