Compare commits
	
		
			2 Commits
		
	
	
		
			db19815c2f
			...
			cef7a1d582
		
	
	| Author | SHA1 | Date | 
|---|---|---|
|  alexey.grishchenko | cef7a1d582 | |
|  alexey.grishchenko | 5cf82612fa | 
|  | @ -1,9 +1,8 @@ | |||
| [gd_scene load_steps=13 format=2] | ||||
| 
 | ||||
| [ext_resource path="res://3d_platforma/Player.tscn" type="PackedScene" id=1] | ||||
| [ext_resource path="res://3d_platforma/golden_bay_512.hdr" type="Texture" id=2] | ||||
| [ext_resource path="res://scripts/Library/Actions/Snare Admiral 2.wav" type="AudioStream" id=3] | ||||
| [ext_resource path="res://3d_platforma/Level1_platforms_slow.tscn" type="PackedScene" id=4] | ||||
| [ext_resource path="res://3d_platforma/sqare_norm.png" type="Texture" id=4] | ||||
| [ext_resource path="res://3d_platforma/texture_08.png" type="Texture" id=5] | ||||
| [ext_resource path="res://scripts/Library/Actions/TriggerOnReady.gd" type="Script" id=6] | ||||
| [ext_resource path="res://scripts/Library/Actions/ActionList.gd" type="Script" id=7] | ||||
|  | @ -17,13 +16,66 @@ albedo_texture = ExtResource( 5 ) | |||
| roughness = 0.85 | ||||
| uv1_triplanar = true | ||||
| 
 | ||||
| [sub_resource type="PanoramaSky" id=23] | ||||
| panorama = ExtResource( 2 ) | ||||
| [sub_resource type="SpatialMaterial" id=38] | ||||
| resource_name = "CheckerGrid" | ||||
| albedo_color = Color( 0.85, 0.85, 0.85, 1 ) | ||||
| albedo_texture = ExtResource( 5 ) | ||||
| roughness = 0.85 | ||||
| uv1_triplanar = true | ||||
| 
 | ||||
| [sub_resource type="OpenSimplexNoise" id=28] | ||||
| octaves = 2 | ||||
| period = 0.8 | ||||
| 
 | ||||
| [sub_resource type="NoiseTexture" id=29] | ||||
| flags = 3 | ||||
| width = 32 | ||||
| height = 32 | ||||
| noise = SubResource( 28 ) | ||||
| 
 | ||||
| [sub_resource type="SpatialMaterial" id=22] | ||||
| albedo_color = Color( 0.478431, 0.235294, 0.486275, 1 ) | ||||
| roughness = 0.5 | ||||
| roughness_texture = SubResource( 29 ) | ||||
| normal_enabled = true | ||||
| normal_scale = 1.0 | ||||
| normal_texture = ExtResource( 4 ) | ||||
| uv1_scale = Vector3( 3, 3, 3 ) | ||||
| uv1_triplanar = true | ||||
| 
 | ||||
| [sub_resource type="Animation" id=37] | ||||
| resource_name = "move" | ||||
| length = 30.0 | ||||
| loop = true | ||||
| tracks/0/type = "value" | ||||
| tracks/0/path = NodePath(".:translation:y") | ||||
| tracks/0/interp = 1 | ||||
| tracks/0/loop_wrap = true | ||||
| tracks/0/imported = false | ||||
| tracks/0/enabled = true | ||||
| tracks/0/keys = { | ||||
| "times": PoolRealArray( 0, 10, 30 ), | ||||
| "transitions": PoolRealArray( 1, 1, 1 ), | ||||
| "update": 0, | ||||
| "values": [ 0.0, 10.0, 0.0 ] | ||||
| } | ||||
| 
 | ||||
| [sub_resource type="ProceduralSky" id=39] | ||||
| sky_top_color = Color( 0.0901961, 0.121569, 0.141176, 1 ) | ||||
| sky_horizon_color = Color( 0.266667, 0.301961, 0.333333, 1 ) | ||||
| sky_energy = 0.1 | ||||
| ground_bottom_color = Color( 0.160784, 0.0666667, 0.0352941, 1 ) | ||||
| ground_horizon_color = Color( 0.266667, 0.301961, 0.333333, 1 ) | ||||
| ground_energy = 0.1 | ||||
| sun_color = Color( 0.972549, 0.976471, 0.345098, 1 ) | ||||
| sun_latitude = 15.0 | ||||
| sun_longitude = -3.96 | ||||
| sun_curve = 0.0170755 | ||||
| 
 | ||||
| [sub_resource type="Environment" id=24] | ||||
| resource_name = "black_env" | ||||
| background_mode = 2 | ||||
| background_sky = SubResource( 23 ) | ||||
| background_sky = SubResource( 39 ) | ||||
| background_sky_custom_fov = 50.0 | ||||
| background_color = Color( 0.137255, 0.137255, 0.137255, 1 ) | ||||
| background_energy = 2.0 | ||||
|  | @ -46,16 +98,103 @@ glow_hdr_scale = 4.0 | |||
| [node name="Game" type="Spatial"] | ||||
| 
 | ||||
| [node name="start" type="CSGBox" parent="."] | ||||
| transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1.1, 0 ) | ||||
| transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -24.1, 0 ) | ||||
| use_collision = true | ||||
| width = 6.05148 | ||||
| height = 0.2 | ||||
| depth = 6.62613 | ||||
| width = 4.0 | ||||
| height = 48.0 | ||||
| depth = 6.0 | ||||
| material = SubResource( 36 ) | ||||
| 
 | ||||
| [node name="Player" parent="." instance=ExtResource( 1 )] | ||||
| 
 | ||||
| [node name="platforms_slow" parent="." instance=ExtResource( 4 )] | ||||
| [node name="enviroment" type="Spatial" parent="."] | ||||
| 
 | ||||
| [node name="Ring2" type="CSGPolygon" parent="enviroment"] | ||||
| transform = Transform( 0.866025, 0.5, -2.18557e-08, 0, -4.37114e-08, -1, -0.5, 0.866025, -3.78552e-08, 0, -0.4, -21.4713 ) | ||||
| polygon = PoolVector2Array( 9, -2, 9.4, -1, 10, -1, 10, -2 ) | ||||
| mode = 1 | ||||
| spin_degrees = 360.0 | ||||
| spin_sides = 16 | ||||
| material = SubResource( 38 ) | ||||
| 
 | ||||
| [node name="Ring3" type="CSGPolygon" parent="enviroment"] | ||||
| transform = Transform( 0.866025, 0.5, -2.18557e-08, 0, -4.37114e-08, -1, -0.5, 0.866025, -3.78552e-08, -10, 6.6, -33.4713 ) | ||||
| polygon = PoolVector2Array( 13, -4, 14, -2, 15, -2, 15, -4 ) | ||||
| mode = 1 | ||||
| spin_degrees = 360.0 | ||||
| spin_sides = 16 | ||||
| material = SubResource( 38 ) | ||||
| 
 | ||||
| [node name="Ring4" type="CSGPolygon" parent="enviroment"] | ||||
| transform = Transform( 1.93185, -0.517638, 2.26267e-08, 0, -8.74228e-08, -2, 0.517638, 1.93185, -8.44439e-08, -11, -0.4, -62.4713 ) | ||||
| polygon = PoolVector2Array( 13, -4, 14, -2, 15, -2, 15, -4 ) | ||||
| mode = 1 | ||||
| spin_degrees = 360.0 | ||||
| spin_sides = 16 | ||||
| material = SubResource( 38 ) | ||||
| 
 | ||||
| [node name="platforms_slow" type="Spatial" parent="."] | ||||
| transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.9, -4.4 ) | ||||
| 
 | ||||
| [node name="pickup" type="CSGCylinder" parent="platforms_slow"] | ||||
| transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1.3, -2 ) | ||||
| use_collision = true | ||||
| radius = 2.3 | ||||
| height = 0.2 | ||||
| sides = 11 | ||||
| 
 | ||||
| [node name="Ring" type="CSGPolygon" parent="platforms_slow"] | ||||
| transform = Transform( 1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0.7, -8.07128 ) | ||||
| use_collision = true | ||||
| polygon = PoolVector2Array( 3, 0, 3.37031, 1.2588, 4.15364, 1.29316, 4, 0 ) | ||||
| mode = 1 | ||||
| spin_degrees = 360.0 | ||||
| spin_sides = 16 | ||||
| material = SubResource( 38 ) | ||||
| 
 | ||||
| [node name="ramp2" type="CSGBox" parent="platforms_slow"] | ||||
| transform = Transform( 1, 0, 0, 0, 0.984808, -0.173648, 0, 0.173648, 0.984808, 0, -1.2, -7.7 ) | ||||
| use_collision = true | ||||
| width = 2.4 | ||||
| height = 0.4 | ||||
| depth = 4.0 | ||||
| material = SubResource( 22 ) | ||||
| 
 | ||||
| [node name="slow_path" type="CSGBox" parent="platforms_slow"] | ||||
| transform = Transform( 0.965926, 0, 0.258819, 0, 1, 0, -0.258819, 0, 0.965926, 0, -0.7, -11.4713 ) | ||||
| use_collision = true | ||||
| width = 2.2 | ||||
| height = 0.6 | ||||
| material = SubResource( 22 ) | ||||
| 
 | ||||
| [node name="slow_path2" type="CSGBox" parent="platforms_slow"] | ||||
| transform = Transform( 0.866025, 0, 0.5, 0, 1, 0, -0.5, 0, 0.866025, -1.4, -0.4, -14.3713 ) | ||||
| use_collision = true | ||||
| width = 2.2 | ||||
| height = 0.6 | ||||
| material = SubResource( 22 ) | ||||
| 
 | ||||
| [node name="slow_path3" type="CSGBox" parent="platforms_slow"] | ||||
| transform = Transform( 0.707107, 0, 0.707107, 0, 1, 0, -0.707107, 0, 0.707107, -2.6, 0.6, -16.3713 ) | ||||
| use_collision = true | ||||
| width = 2.2 | ||||
| height = 0.6 | ||||
| material = SubResource( 22 ) | ||||
| 
 | ||||
| [node name="lift" type="Spatial" parent="platforms_slow"] | ||||
| transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 8, -0.4, -16 ) | ||||
| visible = false | ||||
| 
 | ||||
| [node name="platform" type="CSGBox" parent="platforms_slow/lift"] | ||||
| use_collision = true | ||||
| width = 4.0 | ||||
| height = 1.0 | ||||
| depth = 4.0 | ||||
| material = SubResource( 38 ) | ||||
| 
 | ||||
| [node name="AnimationPlayer" type="AnimationPlayer" parent="platforms_slow/lift/platform"] | ||||
| autoplay = "move" | ||||
| anims/move = SubResource( 37 ) | ||||
| 
 | ||||
| [node name="DirectionalLight" type="DirectionalLight" parent="."] | ||||
| transform = Transform( 0.707107, -0.5, 0.5, 0, 0.707107, 0.707107, -0.707107, -0.5, 0.5, 0, 5, 0 ) | ||||
|  |  | |||
|  | @ -1,4 +1,4 @@ | |||
| [gd_scene load_steps=10 format=2] | ||||
| [gd_scene load_steps=8 format=2] | ||||
| 
 | ||||
| [ext_resource path="res://3d_platforma/texture_08.png" type="Texture" id=1] | ||||
| [ext_resource path="res://3d_platforma/sqare_norm.png" type="Texture" id=2] | ||||
|  | @ -10,6 +10,26 @@ albedo_texture = ExtResource( 1 ) | |||
| roughness = 0.85 | ||||
| uv1_triplanar = true | ||||
| 
 | ||||
| [sub_resource type="OpenSimplexNoise" id=28] | ||||
| octaves = 2 | ||||
| period = 0.8 | ||||
| 
 | ||||
| [sub_resource type="NoiseTexture" id=29] | ||||
| flags = 3 | ||||
| width = 32 | ||||
| height = 32 | ||||
| noise = SubResource( 28 ) | ||||
| 
 | ||||
| [sub_resource type="SpatialMaterial" id=22] | ||||
| albedo_color = Color( 0.478431, 0.235294, 0.486275, 1 ) | ||||
| roughness = 0.5 | ||||
| roughness_texture = SubResource( 29 ) | ||||
| normal_enabled = true | ||||
| normal_scale = 1.0 | ||||
| normal_texture = ExtResource( 2 ) | ||||
| uv1_scale = Vector3( 3, 3, 3 ) | ||||
| uv1_triplanar = true | ||||
| 
 | ||||
| [sub_resource type="Animation" id=37] | ||||
| resource_name = "move" | ||||
| length = 30.0 | ||||
|  | @ -27,51 +47,37 @@ tracks/0/keys = { | |||
| "values": [ 0.0, 10.0, 0.0 ] | ||||
| } | ||||
| 
 | ||||
| [sub_resource type="BoxShape" id=20] | ||||
| 
 | ||||
| [sub_resource type="CubeMesh" id=21] | ||||
| 
 | ||||
| [sub_resource type="OpenSimplexNoise" id=28] | ||||
| octaves = 2 | ||||
| period = 0.8 | ||||
| 
 | ||||
| [sub_resource type="NoiseTexture" id=29] | ||||
| flags = 3 | ||||
| width = 32 | ||||
| height = 32 | ||||
| noise = SubResource( 28 ) | ||||
| 
 | ||||
| [sub_resource type="SpatialMaterial" id=22] | ||||
| albedo_color = Color( 0.603922, 0.0235294, 0.619608, 1 ) | ||||
| roughness = 0.25 | ||||
| roughness_texture = SubResource( 29 ) | ||||
| normal_enabled = true | ||||
| normal_scale = 1.0 | ||||
| normal_texture = ExtResource( 2 ) | ||||
| uv1_scale = Vector3( 3, 3, 3 ) | ||||
| uv1_triplanar = true | ||||
| 
 | ||||
| [node name="platforms_slow" type="Spatial"] | ||||
| transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.1, 0 ) | ||||
| 
 | ||||
| [node name="thin" type="CSGBox" parent="."] | ||||
| transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1, -12 ) | ||||
| [node name="Ring" type="CSGPolygon" parent="."] | ||||
| transform = Transform( 1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 1, -2.37128 ) | ||||
| use_collision = true | ||||
| width = 4.0 | ||||
| height = 0.2 | ||||
| depth = 10.0 | ||||
| polygon = PoolVector2Array( 3, 0, 3.37031, 1.2588, 4.15364, 1.29316, 4, 0 ) | ||||
| mode = 1 | ||||
| spin_degrees = 360.0 | ||||
| spin_sides = 16 | ||||
| material = SubResource( 36 ) | ||||
| 
 | ||||
| [node name="ramp" type="CSGBox" parent="."] | ||||
| transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.4, -22 ) | ||||
| [node name="ramp2" type="CSGBox" parent="."] | ||||
| transform = Transform( 1, 0, 0, 0, 0.984808, -0.173648, 0, 0.173648, 0.984808, 0, -0.9, -2 ) | ||||
| use_collision = true | ||||
| width = 4.0 | ||||
| height = 1.0 | ||||
| depth = 10.0 | ||||
| material = SubResource( 36 ) | ||||
| width = 2.4 | ||||
| height = 0.4 | ||||
| depth = 4.0 | ||||
| material = SubResource( 22 ) | ||||
| 
 | ||||
| [node name="pickup" type="CSGBox" parent="."] | ||||
| transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.1, -15.5713 ) | ||||
| use_collision = true | ||||
| width = 2.2 | ||||
| height = 0.6 | ||||
| depth = 4.0 | ||||
| material = SubResource( 22 ) | ||||
| 
 | ||||
| [node name="lift" type="Spatial" parent="."] | ||||
| transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.4, -30 ) | ||||
| transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 8, -0.4, -16 ) | ||||
| visible = false | ||||
| 
 | ||||
| [node name="platform" type="CSGBox" parent="lift"] | ||||
| use_collision = true | ||||
|  | @ -84,24 +90,9 @@ material = SubResource( 36 ) | |||
| autoplay = "move" | ||||
| anims/move = SubResource( 37 ) | ||||
| 
 | ||||
| [node name="lego" type="StaticBody" parent="."] | ||||
| transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -5, -1.9, -8 ) | ||||
| __meta__ = { | ||||
| "_edit_group_": true | ||||
| } | ||||
| 
 | ||||
| [node name="CollisionShape" type="CollisionShape" parent="lego"] | ||||
| shape = SubResource( 20 ) | ||||
| 
 | ||||
| [node name="MeshInstance" type="MeshInstance" parent="lego"] | ||||
| mesh = SubResource( 21 ) | ||||
| material/0 = SubResource( 22 ) | ||||
| 
 | ||||
| [node name="CSGPolygon" type="CSGPolygon" parent="."] | ||||
| transform = Transform( 1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 1, -12 ) | ||||
| [node name="CSGCylinder" type="CSGCylinder" parent="."] | ||||
| transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, -7 ) | ||||
| use_collision = true | ||||
| polygon = PoolVector2Array( 3, -4, 3, 1, 4.15364, 1.29316, 4, -4 ) | ||||
| mode = 1 | ||||
| spin_degrees = 360.0 | ||||
| spin_sides = 16 | ||||
| material = SubResource( 36 ) | ||||
| radius = 2.0 | ||||
| height = 0.2 | ||||
| sides = 11 | ||||
|  |  | |||
|  | @ -0,0 +1,6 @@ | |||
| [gd_resource type="PanoramaSky" load_steps=2 format=2] | ||||
| 
 | ||||
| [ext_resource path="res://3d_platforma/golden_bay_512.hdr" type="Texture" id=1] | ||||
| 
 | ||||
| [resource] | ||||
| panorama = ExtResource( 1 ) | ||||
|  | @ -91,6 +91,12 @@ common/drop_mouse_on_gui_input_disabled=true | |||
| 
 | ||||
| [input] | ||||
| 
 | ||||
| ui_end={ | ||||
| "deadzone": 0.5, | ||||
| "events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777230,"physical_scancode":0,"unicode":0,"echo":false,"script":null) | ||||
| , Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":82,"physical_scancode":0,"unicode":0,"echo":false,"script":null) | ||||
|  ] | ||||
| } | ||||
| move_forward={ | ||||
| "deadzone": 0.5, | ||||
| "events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":0,"physical_scancode":87,"unicode":0,"echo":false,"script":null) | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue