This commit is contained in:
GoaLitiuM
2021-06-12 02:01:26 +03:00
parent 1b6e828abe
commit 5d98b41c85
15 changed files with 1482 additions and 15 deletions

Binary file not shown.

Binary file not shown.

View File

@@ -5,9 +5,10 @@
"Data": {
"ProductName": "Goake",
"CompanyName": "GoaLitiuM",
"FirstScene": "0733cc9b40d3d05366be64bbd9b59e21",
"FirstScene": "a0165b834429c74b9d547c88fb3a0de0",
"NoSplashScreen": true,
"Time": "a55dc3c04da4ea3744b7f1994565beac",
"Audio": "492a33824049ba25a8bdcdb148179e67",
"LayersAndTags": "60078f6a489f7c57e47fce83afaada66",
"Physics": "4bd8a4cc460399b5f1975fbe0a668e3f",
"Input": "8ec53dba4c238bfbea1d62922e612a4d",

Binary file not shown.

View File

@@ -31,8 +31,8 @@
"Name": "PlayerPrefab",
"Transform": {
"Translation": {
"X": -255.71473693847657,
"Y": 20.558460235595704,
"X": -354.623291015625,
"Y": 176.5519256591797,
"Z": 61.111427307128909
}
},
@@ -70,6 +70,12 @@
},
"Near": 1.0
},
{
"ID": "b59df4764594c5ee84a759b5e65bfc5a",
"TypeName": "FlaxEngine.AudioListener",
"ParentID": "08ed03be4d537814ba01edb88f6801e1",
"Name": "AudioListener"
},
{
"ID": "fbaa6db24f0a2a9db36bc6a043fc2572",
"TypeName": "FlaxEngine.CapsuleCollider",
@@ -168,7 +174,7 @@
},
"Control": "FlaxEngine.GUI.Label",
"Data": {
"Text": "uFPS: 120\nrFPS: 120\npFPS: 30\nCon: NaNms\nDirectX11\nGC memory: 10.44299MB",
"Text": "uFPS: 504\nrFPS: 493\npFPS: 30\nCon: NaNms\nDirectX11\nGC memory: 9.256392MB",
"TextColor": {
"R": 1.0,
"G": 1.0,

View File

@@ -0,0 +1,981 @@
{
"ID": "a0165b834429c74b9d547c88fb3a0de0",
"TypeName": "FlaxEngine.SceneAsset",
"EngineBuild": 6219,
"Data": [
{
"ID": "a0165b834429c74b9d547c88fb3a0de0",
"TypeName": "FlaxEngine.Scene",
"Lightmaps": [
{
"Lightmap0": "00000000000000000000000000000000",
"Lightmap1": "00000000000000000000000000000000",
"Lightmap2": "00000000000000000000000000000000"
}
],
"LightmapSettings": {
"IndirectLightingIntensity": 3.0,
"GlobalObjectsScale": 1.0,
"ChartsPadding": 3,
"AtlasSize": 1024,
"BounceCount": 1,
"CompressLightmaps": false,
"UseGeometryWithNoMaterials": true,
"Quality": 100
}
},
{
"ID": "4ef1f38b4569142b55b0ff935525d47a",
"TypeName": "FlaxEngine.RigidBody",
"ParentID": "a0165b834429c74b9d547c88fb3a0de0",
"Name": "PlayerPrefab",
"Transform": {
"Translation": {
"X": -354.623291015625,
"Y": 176.5519256591797,
"Z": 61.111427307128909
}
},
"OverrideMass": true,
"Mass": 10.0,
"LinearDamping": 0.0,
"AngularDamping": 0.0,
"Constraints": 56,
"IsKinematic": true,
"EnableGravity": false
},
{
"ID": "e3bab01a4912873fc2e9ff855a214bf7",
"TypeName": "Game.PlayerMovement",
"ParentID": "4ef1f38b4569142b55b0ff935525d47a",
"V": {}
},
{
"ID": "08ed03be4d537814ba01edb88f6801e1",
"TypeName": "FlaxEngine.EmptyActor",
"ParentID": "4ef1f38b4569142b55b0ff935525d47a",
"Name": "RootActor"
},
{
"ID": "499cfa784579b58bba713daa0983d705",
"TypeName": "FlaxEngine.Camera",
"ParentID": "08ed03be4d537814ba01edb88f6801e1",
"Name": "Camera",
"Transform": {
"Translation": {
"X": 0.0,
"Y": 28.7337646484375,
"Z": 0.0
}
},
"Near": 1.0
},
{
"ID": "b59df4764594c5ee84a759b5e65bfc5a",
"TypeName": "FlaxEngine.AudioListener",
"ParentID": "08ed03be4d537814ba01edb88f6801e1",
"Name": "AudioListener"
},
{
"ID": "fbaa6db24f0a2a9db36bc6a043fc2572",
"TypeName": "FlaxEngine.CapsuleCollider",
"ParentID": "4ef1f38b4569142b55b0ff935525d47a",
"IsActive": false,
"Name": "CapsuleCollider",
"Transform": {
"Orientation": {
"X": 0.0,
"Y": 0.0,
"Z": 0.7071068286895752,
"W": 0.7071068286895752
}
},
"ContactOffset": 0.0,
"Material": "d99b8b6f40198beea4703dadd642150e",
"Radius": 16.0,
"Height": 52.0
},
{
"ID": "9677298d46e5d5d7021f7cb607bd3023",
"TypeName": "FlaxEngine.BoxCollider",
"ParentID": "4ef1f38b4569142b55b0ff935525d47a",
"Name": "BoxCollider",
"ContactOffset": 0.0,
"Material": "ffe0e84c49607480f67a3994a7fe11a8",
"Size": {
"X": 32.0,
"Y": 84.0,
"Z": 32.0
}
},
{
"ID": "f472490345bbfe282aefa2aa027e0138",
"TypeName": "FlaxEngine.MeshCollider",
"ParentID": "4ef1f38b4569142b55b0ff935525d47a",
"IsActive": false,
"Name": "CylinderCollider",
"Transform": {
"Scale": {
"X": 0.3199999928474426,
"Y": 0.8399999737739563,
"Z": 0.3199999928474426
}
},
"CollisionData": "593d92914c4bd54679ddec9e539bba80"
},
{
"ID": "b5d566374477944e69bdc2b86249883b",
"TypeName": "FlaxEngine.UICanvas",
"ParentID": "a0165b834429c74b9d547c88fb3a0de0",
"Name": "DefaultHudPrefab",
"Transform": {
"Orientation": {
"X": 1.0,
"Y": 4.371138828673793e-8,
"Z": 4.371138828673793e-8,
"W": 1.910685465164705e-15
}
},
"V": {}
},
{
"ID": "f8ac0e55467d78743a7405a1d5720557",
"TypeName": "Cabrito.FpsScript",
"ParentID": "b5d566374477944e69bdc2b86249883b",
"V": {
"control": "17f6e00f48bbc783fc655a8be5bf12d2"
}
},
{
"ID": "2297474f4c06db4d6110979976177b2d",
"TypeName": "Cabrito.ConsoleScript",
"ParentID": "b5d566374477944e69bdc2b86249883b",
"V": {
"ConsoleFont": "43f32bec443158643f53699f07b2e09c",
"BackgroundColor": {
"R": 0.0,
"G": 0.0,
"B": 0.0,
"A": 1.0
}
}
},
{
"ID": "17f6e00f48bbc783fc655a8be5bf12d2",
"TypeName": "FlaxEngine.UIControl",
"ParentID": "b5d566374477944e69bdc2b86249883b",
"Name": "FPSUIControl",
"Transform": {
"Translation": {
"X": 0.0,
"Y": 734.0,
"Z": 0.0
}
},
"Control": "FlaxEngine.GUI.Label",
"Data": {
"Text": "uFPS: 333\nrFPS: 333\npFPS: 30\nCon: NaNms\nDirectX11\nGC memory: 16.1349MB",
"TextColor": {
"R": 1.0,
"G": 1.0,
"B": 1.0,
"A": 1.0
},
"TextColorHighlighted": {
"R": 1.0,
"G": 1.0,
"B": 1.0,
"A": 1.0
},
"HorizontalAlignment": 0,
"VerticalAlignment": 0,
"Wrapping": 0,
"Font": {
"Font": "4508d98f4aa1f0bd59362b81d47e38f4",
"Size": 10
},
"Margin": {
"Left": 0.0,
"Right": 0.0,
"Top": 0.0,
"Bottom": 0.0
},
"ClipText": false,
"AutoWidth": true,
"AutoHeight": true,
"AutoFitText": false,
"AutoFitTextRange": {
"X": 0.1,
"Y": 100.0
},
"ClipChildren": true,
"CullChildren": true,
"AnchorMin": {
"X": 0.0,
"Y": 1.0
},
"AnchorMax": {
"X": 0.0,
"Y": 1.0
},
"Offsets": {
"Left": 0.0,
"Right": 136.0,
"Top": -80.0,
"Bottom": 96.0
},
"Scale": {
"X": 1.0,
"Y": 1.0
},
"Pivot": {
"X": 0.5,
"Y": 0.5
},
"Shear": {
"X": 0.0,
"Y": 0.0
},
"Rotation": 0.0,
"BackgroundColor": {
"R": 0.0,
"G": 0.0,
"B": 0.0,
"A": 0.0
},
"Enabled": true,
"Visible": true
}
},
{
"ID": "c507ff84484772b16d053ba270aab90b",
"TypeName": "FlaxEngine.UIControl",
"ParentID": "b5d566374477944e69bdc2b86249883b",
"Name": "UIControl"
},
{
"ID": "f7c67f5441335ec47d9c5abe2164d1ca",
"TypeName": "FlaxEngine.UIControl",
"ParentID": "b5d566374477944e69bdc2b86249883b",
"Name": "ContainerControl 0",
"Transform": {
"Translation": {
"X": 45676.0,
"Y": 1.0,
"Z": 0.0
}
},
"Control": "FlaxEngine.GUI.ContainerControl",
"Data": {
"ClipChildren": true,
"CullChildren": true,
"AnchorMin": {
"X": 1.0,
"Y": 0.5
},
"AnchorMax": {
"X": 1.0,
"Y": 0.5
},
"Offsets": {
"Left": 44188.0,
"Right": 100.0,
"Top": -406.0,
"Bottom": 30.0
},
"Scale": {
"X": 1.0,
"Y": 1.0
},
"Pivot": {
"X": 0.5,
"Y": 0.5
},
"Shear": {
"X": 0.0,
"Y": 0.0
},
"Rotation": 0.0,
"BackgroundColor": {
"R": 0.0,
"G": 0.0,
"B": 0.0,
"A": 0.0
},
"Enabled": true,
"Visible": true
}
},
{
"ID": "b5f2c9fa45788e293d971a994eb5a48d",
"TypeName": "FlaxEngine.PostFxVolume",
"ParentID": "a0165b834429c74b9d547c88fb3a0de0",
"Name": "PostFxVolume",
"Size": {
"X": 10.0,
"Y": 10.0,
"Z": 10.0
},
"IsBounded": false,
"Settings": {
"AO": {
"OverrideFlags": 1,
"Enabled": false
},
"Bloom": {
"OverrideFlags": 1,
"Enabled": false
},
"ToneMapping": {
"OverrideFlags": 4,
"Mode": 0
},
"ColorGrading": {},
"EyeAdaptation": {
"OverrideFlags": 1,
"Mode": 0
},
"CameraArtifacts": {
"OverrideFlags": 1,
"VignetteIntensity": 0.0,
"GrainAmount": 0.0
},
"LensFlares": {},
"DepthOfField": {},
"MotionBlur": {
"OverrideFlags": 1,
"Enabled": false
},
"SSR": {
"OverrideFlags": 1,
"Intensity": 0.0
},
"AA": {
"OverrideFlags": 1,
"Mode": 0
},
"PostFxMaterials": {}
}
},
{
"ID": "971ab456449e86b64b3f94b2752ba12a",
"TypeName": "FlaxEngine.EmptyActor",
"ParentID": "a0165b834429c74b9d547c88fb3a0de0",
"Name": "Aerowalk_Level"
},
{
"ID": "50ad596341c9673049a24e93f42bbc6a",
"TypeName": "FlaxEngine.StaticModel",
"ParentID": "971ab456449e86b64b3f94b2752ba12a",
"Name": "aerowalk",
"ScaleInLightmap": 1.7000000476837159,
"Model": "3352c3ba40fd1de3860007ac3c82faa1",
"LightmapIndex": 0,
"LightmapArea": {
"Location": {
"X": 0.0068359375,
"Y": 0.0068359375
},
"Size": {
"X": 0.6962890625,
"Y": 0.6962890625
}
},
"Buffer": {
"Entries": [
{
"Material": "f053bbff41720f0b3be515a8516873ea",
"ShadowsMode": 3,
"Visible": true,
"ReceiveDecals": true
}
]
}
},
{
"ID": "bd701dda47ff2d1c02b9cb993563cbd3",
"TypeName": "FlaxEngine.MeshCollider",
"ParentID": "50ad596341c9673049a24e93f42bbc6a",
"Name": "MeshCollider",
"ContactOffset": 0.0,
"CollisionData": "2c230bc4495f2154b1f46dbdfbbc708f"
},
{
"ID": "0ce8e2d243fbab91b628dfb267db7d67",
"TypeName": "FlaxEngine.PointLight",
"ParentID": "971ab456449e86b64b3f94b2752ba12a",
"Name": "PointLight",
"Transform": {
"Translation": {
"X": 386.469482421875,
"Y": 457.0585021972656,
"Z": 86.32246398925781
},
"Orientation": {
"X": 0.0,
"Y": 1.0,
"Z": 0.0,
"W": -1.6391277313232423e-7
}
},
"Brightness": 3.940000057220459,
"ShadowsDistance": 800.0,
"ShadowsFadeDistance": 0.0,
"ShadowsDepthBias": 0.019999999552965165,
"ShadowsNormalOffsetScale": 100.0,
"Radius": 429.5,
"FallOffExponent": 2.0
},
{
"ID": "f7ded1e14f07a1cd69a36281e2b4f3c0",
"TypeName": "FlaxEngine.PointLight",
"ParentID": "971ab456449e86b64b3f94b2752ba12a",
"Name": "PointLight",
"Transform": {
"Translation": {
"X": -59.96686553955078,
"Y": 26.884918212890626,
"Z": 342.89764404296877
},
"Orientation": {
"X": 0.0,
"Y": 1.0,
"Z": 0.0,
"W": -1.6391277313232423e-7
}
},
"Brightness": 3.940000057220459,
"ShadowsDistance": 800.0,
"ShadowsFadeDistance": 0.0,
"ShadowsDepthBias": 0.019999999552965165,
"ShadowsNormalOffsetScale": 100.0,
"Radius": 429.5,
"FallOffExponent": 2.0
},
{
"ID": "ed0d4fe14e117a1aa08adb901f92d921",
"TypeName": "FlaxEngine.PointLight",
"ParentID": "971ab456449e86b64b3f94b2752ba12a",
"Name": "PointLight",
"Transform": {
"Translation": {
"X": -416.376953125,
"Y": 262.5929870605469,
"Z": -1.7605438232421876
},
"Orientation": {
"X": 0.0,
"Y": 1.0,
"Z": 0.0,
"W": -1.6391277313232423e-7
}
},
"Brightness": 3.940000057220459,
"ShadowsDistance": 800.0,
"ShadowsFadeDistance": 0.0,
"ShadowsDepthBias": 0.019999999552965165,
"ShadowsNormalOffsetScale": 100.0,
"Radius": 429.5,
"FallOffExponent": 2.0
},
{
"ID": "89bd3f334aa2f24cff5929a24b14694b",
"TypeName": "FlaxEngine.PointLight",
"ParentID": "971ab456449e86b64b3f94b2752ba12a",
"Name": "PointLight 11",
"Transform": {
"Translation": {
"X": 138.2563018798828,
"Y": 287.7386779785156,
"Z": -1.7607269287109376
},
"Orientation": {
"X": 0.0,
"Y": 1.0,
"Z": 0.0,
"W": -1.6391277313232423e-7
}
},
"Brightness": 3.940000057220459,
"ShadowsDistance": 800.0,
"ShadowsFadeDistance": 0.0,
"ShadowsDepthBias": 0.019999999552965165,
"ShadowsNormalOffsetScale": 100.0,
"Radius": 429.5,
"FallOffExponent": 2.0
},
{
"ID": "39f47d7a49aacce8412b8fa32238b930",
"TypeName": "FlaxEngine.PointLight",
"ParentID": "971ab456449e86b64b3f94b2752ba12a",
"Name": "PointLight",
"Transform": {
"Translation": {
"X": -800.9537353515625,
"Y": 257.7035217285156,
"Z": 640.9146728515625
},
"Orientation": {
"X": 0.0,
"Y": 1.0,
"Z": 0.0,
"W": -1.6391277313232423e-7
}
},
"Brightness": 3.940000057220459,
"ShadowsDistance": 800.0,
"ShadowsFadeDistance": 0.0,
"ShadowsDepthBias": 0.019999999552965165,
"ShadowsNormalOffsetScale": 100.0,
"Radius": 429.5,
"FallOffExponent": 2.0
},
{
"ID": "bf8d9ec348a48ebe3f4116a01b4b8d68",
"TypeName": "FlaxEngine.PointLight",
"ParentID": "971ab456449e86b64b3f94b2752ba12a",
"Name": "PointLight",
"Transform": {
"Translation": {
"X": -22.249412536621095,
"Y": 216.15463256835938,
"Z": 458.52813720703127
},
"Orientation": {
"X": 0.0,
"Y": 1.0,
"Z": 0.0,
"W": -1.6391277313232423e-7
}
},
"Brightness": 3.940000057220459,
"ShadowsDistance": 800.0,
"ShadowsFadeDistance": 0.0,
"ShadowsDepthBias": 0.019999999552965165,
"ShadowsNormalOffsetScale": 100.0,
"Radius": 429.5,
"FallOffExponent": 2.0
},
{
"ID": "73763d8245e22b7282e954a8f100ae9f",
"TypeName": "FlaxEngine.PointLight",
"ParentID": "971ab456449e86b64b3f94b2752ba12a",
"Name": "PointLight 7",
"Transform": {
"Translation": {
"X": -224.91685485839845,
"Y": 216.15463256835938,
"Z": 458.52813720703127
},
"Orientation": {
"X": 0.0,
"Y": 1.0,
"Z": 0.0,
"W": -1.6391277313232423e-7
}
},
"Brightness": 3.940000057220459,
"ShadowsDistance": 800.0,
"ShadowsFadeDistance": 0.0,
"ShadowsDepthBias": 0.019999999552965165,
"ShadowsNormalOffsetScale": 100.0,
"Radius": 429.5,
"FallOffExponent": 2.0
},
{
"ID": "b36f412b4fc40301e6d7638a42cfa7ad",
"TypeName": "FlaxEngine.PointLight",
"ParentID": "971ab456449e86b64b3f94b2752ba12a",
"Name": "PointLight 8",
"Transform": {
"Translation": {
"X": -462.65252685546877,
"Y": 216.15463256835938,
"Z": 458.52825927734377
},
"Orientation": {
"X": 0.0,
"Y": 1.0,
"Z": 0.0,
"W": -1.6391277313232423e-7
}
},
"Brightness": 3.940000057220459,
"ShadowsDistance": 800.0,
"ShadowsFadeDistance": 0.0,
"ShadowsDepthBias": 0.019999999552965165,
"ShadowsNormalOffsetScale": 100.0,
"Radius": 429.5,
"FallOffExponent": 2.0
},
{
"ID": "61694a304bfd82d9643b47a42e45072b",
"TypeName": "FlaxEngine.PointLight",
"ParentID": "971ab456449e86b64b3f94b2752ba12a",
"Name": "PointLight 9",
"Transform": {
"Translation": {
"X": -653.377197265625,
"Y": 282.5953063964844,
"Z": 458.52825927734377
},
"Orientation": {
"X": 0.0,
"Y": 1.0,
"Z": 0.0,
"W": -1.6391277313232423e-7
}
},
"Brightness": 3.940000057220459,
"ShadowsDistance": 800.0,
"ShadowsFadeDistance": 0.0,
"ShadowsDepthBias": 0.019999999552965165,
"ShadowsNormalOffsetScale": 100.0,
"Radius": 429.5,
"FallOffExponent": 2.0
},
{
"ID": "18197acc42eb0830038ac68bfe9ae8fb",
"TypeName": "FlaxEngine.PointLight",
"ParentID": "971ab456449e86b64b3f94b2752ba12a",
"Name": "PointLight 10",
"Transform": {
"Translation": {
"X": -624.2757568359375,
"Y": 307.1398620605469,
"Z": 39.12767028808594
},
"Orientation": {
"X": 0.0,
"Y": 1.0,
"Z": 0.0,
"W": -1.6391277313232423e-7
}
},
"Brightness": 3.940000057220459,
"ShadowsDistance": 800.0,
"ShadowsFadeDistance": 0.0,
"ShadowsDepthBias": 0.019999999552965165,
"ShadowsNormalOffsetScale": 100.0,
"Radius": 429.5,
"FallOffExponent": 2.0
},
{
"ID": "1dae734c4ea1de10161a7898bf5e9f66",
"TypeName": "FlaxEngine.PointLight",
"ParentID": "971ab456449e86b64b3f94b2752ba12a",
"Name": "PointLight",
"Transform": {
"Translation": {
"X": -427.7120361328125,
"Y": 500.9798889160156,
"Z": -5.9748992919921879
},
"Orientation": {
"X": 0.0,
"Y": 1.0,
"Z": 0.0,
"W": -1.6391277313232423e-7
}
},
"Brightness": 3.940000057220459,
"ShadowsDistance": 800.0,
"ShadowsFadeDistance": 0.0,
"ShadowsDepthBias": 0.019999999552965165,
"ShadowsNormalOffsetScale": 100.0,
"Radius": 429.5,
"FallOffExponent": 2.0
},
{
"ID": "ec5da699440d4b3a95303096a4282842",
"TypeName": "FlaxEngine.PointLight",
"ParentID": "971ab456449e86b64b3f94b2752ba12a",
"Name": "PointLight 2",
"Transform": {
"Translation": {
"X": -763.2633056640625,
"Y": 500.9798889160156,
"Z": 141.4754180908203
},
"Orientation": {
"X": 0.0,
"Y": 1.0,
"Z": 0.0,
"W": -1.6391277313232423e-7
}
},
"Brightness": 3.940000057220459,
"ShadowsDistance": 800.0,
"ShadowsFadeDistance": 0.0,
"ShadowsDepthBias": 0.019999999552965165,
"ShadowsNormalOffsetScale": 100.0,
"Radius": 429.5,
"FallOffExponent": 2.0
},
{
"ID": "18806dc94904d939dc79b1bb065004fa",
"TypeName": "FlaxEngine.PointLight",
"ParentID": "971ab456449e86b64b3f94b2752ba12a",
"Name": "PointLight 3",
"Transform": {
"Translation": {
"X": -763.2630615234375,
"Y": 500.9798889160156,
"Z": 420.3966064453125
},
"Orientation": {
"X": 0.0,
"Y": 1.0,
"Z": 0.0,
"W": -1.6391277313232423e-7
}
},
"Brightness": 3.940000057220459,
"ShadowsDistance": 800.0,
"ShadowsFadeDistance": 0.0,
"ShadowsDepthBias": 0.019999999552965165,
"ShadowsNormalOffsetScale": 100.0,
"Radius": 429.5,
"FallOffExponent": 2.0
},
{
"ID": "5b8d205d4ec6e7dd12dfc399a54f3875",
"TypeName": "FlaxEngine.PointLight",
"ParentID": "971ab456449e86b64b3f94b2752ba12a",
"Name": "PointLight 4",
"Transform": {
"Translation": {
"X": -426.039306640625,
"Y": 492.2154846191406,
"Z": 420.39642333984377
},
"Orientation": {
"X": 0.0,
"Y": 1.0,
"Z": 0.0,
"W": -1.6391277313232423e-7
}
},
"Brightness": 3.940000057220459,
"ShadowsDistance": 800.0,
"ShadowsFadeDistance": 0.0,
"ShadowsDepthBias": 0.019999999552965165,
"ShadowsNormalOffsetScale": 100.0,
"Radius": 429.5,
"FallOffExponent": 2.0
},
{
"ID": "6993b1b54b4f3fd05255ac88fdd65006",
"TypeName": "FlaxEngine.PointLight",
"ParentID": "971ab456449e86b64b3f94b2752ba12a",
"Name": "PointLight 5",
"Transform": {
"Translation": {
"X": -254.60006713867188,
"Y": 536.7188720703125,
"Z": 420.396484375
},
"Orientation": {
"X": 0.0,
"Y": 1.0,
"Z": 0.0,
"W": -1.6391277313232423e-7
}
},
"Brightness": 3.940000057220459,
"ShadowsDistance": 800.0,
"ShadowsFadeDistance": 0.0,
"ShadowsDepthBias": 0.019999999552965165,
"ShadowsNormalOffsetScale": 100.0,
"Radius": 429.5,
"FallOffExponent": 2.0
},
{
"ID": "b82fee5d4cc1691d996ba7b7b384f84d",
"TypeName": "FlaxEngine.PointLight",
"ParentID": "971ab456449e86b64b3f94b2752ba12a",
"Name": "PointLight 6",
"Transform": {
"Translation": {
"X": -52.62371826171875,
"Y": 536.7188720703125,
"Z": 420.3963623046875
},
"Orientation": {
"X": 0.0,
"Y": 1.0,
"Z": 0.0,
"W": -1.6391277313232423e-7
}
},
"Brightness": 3.940000057220459,
"ShadowsDistance": 800.0,
"ShadowsFadeDistance": 0.0,
"ShadowsDepthBias": 0.019999999552965165,
"ShadowsNormalOffsetScale": 100.0,
"Radius": 429.5,
"FallOffExponent": 2.0
},
{
"ID": "8e99253a4a7a84aad58b7eb5ae8fb864",
"TypeName": "FlaxEngine.PointLight",
"ParentID": "971ab456449e86b64b3f94b2752ba12a",
"Name": "PointLight",
"Transform": {
"Translation": {
"X": 163.44715881347657,
"Y": 399.0141906738281,
"Z": -343.45733642578127
},
"Orientation": {
"X": 0.0,
"Y": 1.0,
"Z": 0.0,
"W": -1.6391277313232423e-7
}
},
"Brightness": 3.940000057220459,
"ShadowsDistance": 800.0,
"ShadowsFadeDistance": 0.0,
"ShadowsDepthBias": 0.019999999552965165,
"ShadowsNormalOffsetScale": 100.0,
"Radius": 429.5,
"FallOffExponent": 2.0
},
{
"ID": "943371144750abdeb0a96f872e42f91c",
"TypeName": "FlaxEngine.PointLight",
"ParentID": "971ab456449e86b64b3f94b2752ba12a",
"Name": "PointLight 0",
"Transform": {
"Translation": {
"X": -125.14828491210938,
"Y": 506.5095520019531,
"Z": -551.33056640625
},
"Orientation": {
"X": 0.0,
"Y": 1.0,
"Z": 0.0,
"W": -1.6391277313232423e-7
}
},
"Brightness": 3.940000057220459,
"ShadowsDistance": 800.0,
"ShadowsFadeDistance": 0.0,
"ShadowsDepthBias": 0.019999999552965165,
"ShadowsNormalOffsetScale": 100.0,
"Radius": 429.5,
"FallOffExponent": 2.0
},
{
"ID": "a14e27b84c8cfff9a66d8ebcdf031ec1",
"TypeName": "FlaxEngine.PointLight",
"ParentID": "971ab456449e86b64b3f94b2752ba12a",
"Name": "PointLight 1",
"Transform": {
"Translation": {
"X": -125.14804077148438,
"Y": 496.2927551269531,
"Z": -318.9842529296875
},
"Orientation": {
"X": 0.0,
"Y": 1.0,
"Z": 0.0,
"W": -1.6391277313232423e-7
}
},
"Brightness": 3.940000057220459,
"ShadowsDistance": 800.0,
"ShadowsFadeDistance": 0.0,
"ShadowsDepthBias": 0.019999999552965165,
"ShadowsNormalOffsetScale": 100.0,
"Radius": 429.5,
"FallOffExponent": 2.0
},
{
"ID": "0e1cc7e14a6874111b38d68e862022af",
"TypeName": "FlaxEngine.PointLight",
"ParentID": "971ab456449e86b64b3f94b2752ba12a",
"Name": "PointLight",
"Transform": {
"Translation": {
"X": 375.72802734375,
"Y": 297.9532165527344,
"Z": 309.9293212890625
},
"Orientation": {
"X": 0.0,
"Y": 1.0,
"Z": 0.0,
"W": -1.6391277313232423e-7
}
},
"Brightness": 3.940000057220459,
"ShadowsDistance": 800.0,
"ShadowsFadeDistance": 0.0,
"ShadowsDepthBias": 0.019999999552965165,
"ShadowsNormalOffsetScale": 100.0,
"Radius": 429.5,
"FallOffExponent": 2.0
},
{
"ID": "d6901d524466f77d4397acbd969f9eed",
"TypeName": "FlaxEngine.PointLight",
"ParentID": "971ab456449e86b64b3f94b2752ba12a",
"Name": "PointLight 0",
"Transform": {
"Translation": {
"X": 561.3408203125,
"Y": 296.2887268066406,
"Z": 309.9293212890625
},
"Orientation": {
"X": 0.0,
"Y": 1.0,
"Z": 0.0,
"W": -1.6391277313232423e-7
}
},
"Brightness": 3.940000057220459,
"ShadowsDistance": 800.0,
"ShadowsFadeDistance": 0.0,
"ShadowsDepthBias": 0.019999999552965165,
"ShadowsNormalOffsetScale": 100.0,
"Radius": 429.5,
"FallOffExponent": 2.0
},
{
"ID": "004cb5b14e0557f74e5c0e9931c91f35",
"TypeName": "FlaxEngine.DirectionalLight",
"ParentID": "a0165b834429c74b9d547c88fb3a0de0",
"IsActive": false,
"Name": "DirectionalLight",
"Transform": {
"Orientation": {
"X": 0.7071068286895752,
"Y": 0.0,
"Z": 0.0,
"W": 0.7071068286895752
}
}
},
{
"ID": "59dbfb614285609352de3cbae7523cc2",
"TypeName": "FlaxEngine.SkyLight",
"ParentID": "a0165b834429c74b9d547c88fb3a0de0",
"IsActive": false,
"Name": "SkyLight",
"Brightness": 0.3999999761581421,
"Mode": 0
},
{
"ID": "23e180374748c02bb99b2cad33d22e7d",
"TypeName": "FlaxEngine.Sky",
"ParentID": "a0165b834429c74b9d547c88fb3a0de0",
"IsActive": false,
"Name": "Sky"
}
]
}

View File

@@ -0,0 +1,417 @@
{
"ID": "0c0af24c4fafa9c72af2c08723321976",
"TypeName": "FlaxEngine.SceneAsset",
"EngineBuild": 6219,
"Data": [
{
"ID": "0c0af24c4fafa9c72af2c08723321976",
"TypeName": "FlaxEngine.Scene",
"Lightmaps": [
{
"Lightmap0": "00000000000000000000000000000000",
"Lightmap1": "00000000000000000000000000000000",
"Lightmap2": "00000000000000000000000000000000"
}
],
"LightmapSettings": {
"IndirectLightingIntensity": 3.0,
"GlobalObjectsScale": 1.0,
"ChartsPadding": 3,
"AtlasSize": 1024,
"BounceCount": 1,
"CompressLightmaps": false,
"UseGeometryWithNoMaterials": true,
"Quality": 100
}
},
{
"ID": "4ef1f38b4569142b55b0ff935525d47a",
"TypeName": "FlaxEngine.RigidBody",
"ParentID": "0c0af24c4fafa9c72af2c08723321976",
"Name": "PlayerPrefab",
"Transform": {
"Translation": {
"X": -167.25045776367188,
"Y": -10.409317016601563,
"Z": 61.111427307128909
}
},
"OverrideMass": true,
"Mass": 10.0,
"LinearDamping": 0.0,
"AngularDamping": 0.0,
"Constraints": 56,
"IsKinematic": true,
"EnableGravity": false
},
{
"ID": "e3bab01a4912873fc2e9ff855a214bf7",
"TypeName": "Game.PlayerMovement",
"ParentID": "4ef1f38b4569142b55b0ff935525d47a",
"V": {}
},
{
"ID": "08ed03be4d537814ba01edb88f6801e1",
"TypeName": "FlaxEngine.EmptyActor",
"ParentID": "4ef1f38b4569142b55b0ff935525d47a",
"Name": "RootActor"
},
{
"ID": "499cfa784579b58bba713daa0983d705",
"TypeName": "FlaxEngine.Camera",
"ParentID": "08ed03be4d537814ba01edb88f6801e1",
"Name": "Camera",
"Transform": {
"Translation": {
"X": 0.0,
"Y": 28.7337646484375,
"Z": 0.0
}
},
"Near": 1.0
},
{
"ID": "b59df4764594c5ee84a759b5e65bfc5a",
"TypeName": "FlaxEngine.AudioListener",
"ParentID": "08ed03be4d537814ba01edb88f6801e1",
"Name": "AudioListener"
},
{
"ID": "fbaa6db24f0a2a9db36bc6a043fc2572",
"TypeName": "FlaxEngine.CapsuleCollider",
"ParentID": "4ef1f38b4569142b55b0ff935525d47a",
"IsActive": false,
"Name": "CapsuleCollider",
"Transform": {
"Orientation": {
"X": 0.0,
"Y": 0.0,
"Z": 0.7071068286895752,
"W": 0.7071068286895752
}
},
"ContactOffset": 0.0,
"Material": "d99b8b6f40198beea4703dadd642150e",
"Radius": 16.0,
"Height": 52.0
},
{
"ID": "9677298d46e5d5d7021f7cb607bd3023",
"TypeName": "FlaxEngine.BoxCollider",
"ParentID": "4ef1f38b4569142b55b0ff935525d47a",
"Name": "BoxCollider",
"ContactOffset": 0.0,
"Material": "ffe0e84c49607480f67a3994a7fe11a8",
"Size": {
"X": 32.0,
"Y": 84.0,
"Z": 32.0
}
},
{
"ID": "f472490345bbfe282aefa2aa027e0138",
"TypeName": "FlaxEngine.MeshCollider",
"ParentID": "4ef1f38b4569142b55b0ff935525d47a",
"IsActive": false,
"Name": "CylinderCollider",
"Transform": {
"Scale": {
"X": 0.3199999928474426,
"Y": 0.8399999737739563,
"Z": 0.3199999928474426
}
},
"CollisionData": "593d92914c4bd54679ddec9e539bba80"
},
{
"ID": "b5d566374477944e69bdc2b86249883b",
"TypeName": "FlaxEngine.UICanvas",
"ParentID": "0c0af24c4fafa9c72af2c08723321976",
"Name": "DefaultHudPrefab",
"Transform": {
"Orientation": {
"X": 1.0,
"Y": 4.371138828673793e-8,
"Z": 4.371138828673793e-8,
"W": 1.910685465164705e-15
}
},
"V": {}
},
{
"ID": "f8ac0e55467d78743a7405a1d5720557",
"TypeName": "Cabrito.FpsScript",
"ParentID": "b5d566374477944e69bdc2b86249883b",
"V": {
"control": "17f6e00f48bbc783fc655a8be5bf12d2"
}
},
{
"ID": "2297474f4c06db4d6110979976177b2d",
"TypeName": "Cabrito.ConsoleScript",
"ParentID": "b5d566374477944e69bdc2b86249883b",
"V": {
"ConsoleFont": "43f32bec443158643f53699f07b2e09c",
"BackgroundColor": {
"R": 0.0,
"G": 0.0,
"B": 0.0,
"A": 1.0
}
}
},
{
"ID": "17f6e00f48bbc783fc655a8be5bf12d2",
"TypeName": "FlaxEngine.UIControl",
"ParentID": "b5d566374477944e69bdc2b86249883b",
"Name": "FPSUIControl",
"Transform": {
"Translation": {
"X": 0.0,
"Y": 733.0,
"Z": 0.0
}
},
"Control": "FlaxEngine.GUI.Label",
"Data": {
"Text": "uFPS: 120\nrFPS: 120\npFPS: 30\nCon: NaNms\nDirectX11\nGC memory: 15.30202MB",
"TextColor": {
"R": 1.0,
"G": 1.0,
"B": 1.0,
"A": 1.0
},
"TextColorHighlighted": {
"R": 1.0,
"G": 1.0,
"B": 1.0,
"A": 1.0
},
"HorizontalAlignment": 0,
"VerticalAlignment": 0,
"Wrapping": 0,
"Font": {
"Font": "4508d98f4aa1f0bd59362b81d47e38f4",
"Size": 10
},
"Margin": {
"Left": 0.0,
"Right": 0.0,
"Top": 0.0,
"Bottom": 0.0
},
"ClipText": false,
"AutoWidth": true,
"AutoHeight": true,
"AutoFitText": false,
"AutoFitTextRange": {
"X": 0.1,
"Y": 100.0
},
"ClipChildren": true,
"CullChildren": true,
"AnchorMin": {
"X": 0.0,
"Y": 1.0
},
"AnchorMax": {
"X": 0.0,
"Y": 1.0
},
"Offsets": {
"Left": 0.0,
"Right": 143.0,
"Top": -80.0,
"Bottom": 96.0
},
"Scale": {
"X": 1.0,
"Y": 1.0
},
"Pivot": {
"X": 0.5,
"Y": 0.5
},
"Shear": {
"X": 0.0,
"Y": 0.0
},
"Rotation": 0.0,
"BackgroundColor": {
"R": 0.0,
"G": 0.0,
"B": 0.0,
"A": 0.0
},
"Enabled": true,
"Visible": true
}
},
{
"ID": "c507ff84484772b16d053ba270aab90b",
"TypeName": "FlaxEngine.UIControl",
"ParentID": "b5d566374477944e69bdc2b86249883b",
"Name": "UIControl"
},
{
"ID": "f7c67f5441335ec47d9c5abe2164d1ca",
"TypeName": "FlaxEngine.UIControl",
"ParentID": "b5d566374477944e69bdc2b86249883b",
"Name": "ContainerControl 0",
"Transform": {
"Translation": {
"X": 45644.0,
"Y": 0.5,
"Z": 0.0
}
},
"Control": "FlaxEngine.GUI.ContainerControl",
"Data": {
"ClipChildren": true,
"CullChildren": true,
"AnchorMin": {
"X": 1.0,
"Y": 0.5
},
"AnchorMax": {
"X": 1.0,
"Y": 0.5
},
"Offsets": {
"Left": 44188.0,
"Right": 100.0,
"Top": -406.0,
"Bottom": 30.0
},
"Scale": {
"X": 1.0,
"Y": 1.0
},
"Pivot": {
"X": 0.5,
"Y": 0.5
},
"Shear": {
"X": 0.0,
"Y": 0.0
},
"Rotation": 0.0,
"BackgroundColor": {
"R": 0.0,
"G": 0.0,
"B": 0.0,
"A": 0.0
},
"Enabled": true,
"Visible": true
}
},
{
"ID": "b5f2c9fa45788e293d971a994eb5a48d",
"TypeName": "FlaxEngine.PostFxVolume",
"ParentID": "0c0af24c4fafa9c72af2c08723321976",
"Name": "PostFxVolume",
"Size": {
"X": 10.0,
"Y": 10.0,
"Z": 10.0
},
"IsBounded": false,
"Settings": {
"AO": {
"OverrideFlags": 1,
"Enabled": false
},
"Bloom": {
"OverrideFlags": 1,
"Enabled": false
},
"ToneMapping": {
"OverrideFlags": 4,
"Mode": 0
},
"ColorGrading": {},
"EyeAdaptation": {
"OverrideFlags": 1,
"Mode": 0
},
"CameraArtifacts": {
"OverrideFlags": 1,
"VignetteIntensity": 0.0,
"GrainAmount": 0.0
},
"LensFlares": {},
"DepthOfField": {},
"MotionBlur": {
"OverrideFlags": 1,
"Enabled": false
},
"SSR": {
"OverrideFlags": 1,
"Intensity": 0.0
},
"AA": {
"OverrideFlags": 1,
"Mode": 0
},
"PostFxMaterials": {}
}
},
{
"ID": "971ab456449e86b64b3f94b2752ba12a",
"TypeName": "FlaxEngine.EmptyActor",
"ParentID": "0c0af24c4fafa9c72af2c08723321976",
"Name": "Aerowalk_Level"
},
{
"ID": "50ad596341c9673049a24e93f42bbc6a",
"TypeName": "FlaxEngine.StaticModel",
"ParentID": "971ab456449e86b64b3f94b2752ba12a",
"Name": "aerowalk",
"ScaleInLightmap": 1.7000000476837159,
"Model": "3352c3ba40fd1de3860007ac3c82faa1",
"LightmapIndex": 0,
"LightmapArea": {
"Location": {
"X": 0.0068359375,
"Y": 0.0068359375
},
"Size": {
"X": 0.6962890625,
"Y": 0.6962890625
}
},
"Buffer": {
"Entries": [
{
"Material": "f053bbff41720f0b3be515a8516873ea",
"ShadowsMode": 3,
"Visible": true,
"ReceiveDecals": true
}
]
}
},
{
"ID": "bd701dda47ff2d1c02b9cb993563cbd3",
"TypeName": "FlaxEngine.MeshCollider",
"ParentID": "50ad596341c9673049a24e93f42bbc6a",
"Name": "MeshCollider",
"ContactOffset": 0.0,
"CollisionData": "2c230bc4495f2154b1f46dbdfbbc708f"
},
{
"ID": "a748827c4c2eea4bf65870bf44889b3a",
"TypeName": "FlaxEngine.PointLight",
"ParentID": "0c0af24c4fafa9c72af2c08723321976",
"Name": "PointLight",
"Transform": {
"Translation": {
"X": -212.0598907470703,
"Y": 45.51081848144531,
"Z": 218.5898895263672
}
}
}
]
}

View File

@@ -0,0 +1,10 @@
{
"ID": "492a33824049ba25a8bdcdb148179e67",
"TypeName": "FlaxEditor.Content.Settings.AudioSettings",
"EngineBuild": 6219,
"Data": {
"DisableAudio": false,
"DopplerFactor": 1.0,
"MuteOnFocusLoss": false
}
}

View File

@@ -72,7 +72,7 @@
"Name": "ClearConsole",
"Mode": 1,
"Key": 66,
"MouseButton": 3,
"MouseButton": 0,
"GamepadButton": 0,
"Gamepad": 0
}

View File

@@ -10,17 +10,17 @@
"Name": "$(EnginePath)/Flax.flaxproj"
}
],
"DefaultScene": "0733cc9b40d3d05366be64bbd9b59e21",
"DefaultScene": "0c0af24c4fafa9c72af2c08723321976",
"DefaultSceneSpawn": {
"Position": {
"X": 0.0,
"Y": 0.0,
"Z": 0.0
"X": -156.703262,
"Y": 72.0358047,
"Z": 60.55879
},
"Direction": {
"X": 0.0,
"Y": 0.0,
"Z": 1.0
"X": -0.138984218,
"Y": -0.0383501835,
"Z": 0.9895517
}
},
"MinEngineVersion": "0.0.6194"

12
Source/Game.Gen.cpp Normal file
View File

@@ -0,0 +1,12 @@
// This code was auto-generated. Do not modify it.
#include "Engine/Scripting/BinaryModule.h"
#include "Game.Gen.h"
StaticallyLinkedBinaryModuleInitializer StaticallyLinkedBinaryModuleGame(GetBinaryModuleGame);
extern "C" BinaryModule* GetBinaryModuleGame()
{
static NativeBinaryModule module("Game", MAssemblyOptions());
return &module;
}

15
Source/Game.Gen.h Normal file
View File

@@ -0,0 +1,15 @@
// This code was auto-generated. Do not modify it.
#pragma once
#define GAME_NAME "Game"
#define GAME_VERSION Version(1, 0)
#define GAME_VERSION_TEXT "1.0"
#define GAME_VERSION_MAJOR 1
#define GAME_VERSION_MINOR 0
#define GAME_VERSION_BUILD -1
#define GAME_COMPANY "My Company"
#define GAME_COPYRIGHT ""
class BinaryModule;
extern "C" GAME_API BinaryModule* GetBinaryModuleGame();

View File

@@ -264,12 +264,12 @@ namespace Cabrito
private void OnSendLog(LogType level, string msg, FlaxEngine.Object obj, string stackTrace)
{
//Console.Print("[DEBUG] " + msg);
Console.Print("[DEBUG] " + msg);
}
private void OnSendExceptionLog(Exception exception, FlaxEngine.Object obj)
{
//Console.Print("[EXCEP] " + exception.Message);
Console.Print("[EXCEP] " + exception.Message);
}
public override void OnDestroy()

View File

@@ -1,6 +1,8 @@
using Flax.Build;
using Flax.Build.NativeCpp;
using System;
using System.Collections.Generic;
using System.Linq;
public class Game : GameModule
{
@@ -27,6 +29,5 @@ public class Game : GameModule
// To reference another module use: options.PublicDependencies.Add("Audio");
// To add C++ define use: options.PublicDefinitions.Add("COMPILE_WITH_FLAX");
// To learn more see scripting documentation.
BuildNativeCode = false;
}
}

View File

@@ -5,6 +5,7 @@ using System.Diagnostics;
using System.Threading.Tasks;
using FlaxEngine.Assertions;
using Console = Cabrito.Console;
using Object = FlaxEngine.Object;
namespace Game
{
@@ -254,6 +255,7 @@ namespace Game
if (traceDown.fraction < 1f && -Vector3.Dot(Physics.Gravity.Normalized, traceDown.hitNormal) < 0.7)
{
// can't step down, slide move like normally
Console.Print("no stepping 1, frac: " + traceDown.fraction.ToString() + ", dot: " + (-Vector3.Dot(Physics.Gravity.Normalized, traceDown.hitNormal)).ToString() + ", norm: " + traceDown.hitNormal.ToString());
position = slidePosition;
velocity = slideVelocity;
return slideMoveHit;
@@ -269,6 +271,7 @@ namespace Game
if (d1 < d2)
{
// ?
Console.Print("no stepping 2, " + d1.ToString() + " < " + d2.ToString());
position = slidePosition;
velocity = slideVelocity;
return slideMoveHit;
@@ -284,6 +287,7 @@ namespace Game
// choose which one went furthest away from the original position
if ((stepPosition2 - originalPosition).Length < (slidePosition2 - originalPosition).Length)
{
Console.Print("no stepping 3");
position = slidePosition;
velocity = slideVelocity;
return slideMoveHit;
@@ -553,6 +557,26 @@ namespace Game
velocity += Vector3.Up * jumpVelocity;
onGround = false;
Guid jumpguid;
FlaxEngine.Json.JsonSerializer.ParseID("1ef4565844a4b36cdfda54b51f338c77", out jumpguid);
AudioClip jumpAsset = AudioClip.Find<AudioClip>(ref jumpguid);
if (jumpAsset != null && jumpAsset.IsLoaded)
{
var audioSource = new AudioSource();
audioSource.Clip = jumpAsset;
audioSource.Position = rootActor.Position;//new Vector3(-350, 176, 61);//rootActor.Position;
audioSource.Parent = Actor.Parent;
audioSource.Play();
Destroy(audioSource, jumpAsset.Length);
Console.Print("jumping sound!");
}
else if (jumpAsset == null)
Console.Print("jumpAsset not found");
else
Console.Print("jumpAsset not loaded");
}
else if (jumped) // jump released
jumped = false;