diff --git a/scenes/s_main/S_Main.tscn b/scenes/s_main/S_Main.tscn index c1e322a..abe69ec 100644 --- a/scenes/s_main/S_Main.tscn +++ b/scenes/s_main/S_Main.tscn @@ -1,45 +1,75 @@ -[gd_scene load_steps=12 format=2] +[gd_scene load_steps=13 format=2] [ext_resource path="res://scenes/s_main/default_env.tres" type="Environment" id=1] [ext_resource path="res://scenes/s_main/s_main.gd" type="Script" id=2] [ext_resource path="res://entities/player/Player.tscn" type="PackedScene" id=3] [ext_resource path="res://scenes/assets/ladder/Ladder.tscn" type="PackedScene" id=4] [ext_resource path="res://scenes/assets/fps_counter/FPS_Counter.tscn" type="PackedScene" id=5] -[ext_resource path="res://scenes/s_main/materials/dark.material" type="Material" id=6] [ext_resource path="res://scenes/s_main/materials/blue.material" type="Material" id=7] [sub_resource type="CubeMesh" id=1] size = Vector3( 1, 1, 1 ) -[sub_resource type="ConvexPolygonShape" id=2] +[sub_resource type="ShaderMaterial" id=2] + +[sub_resource type="ConvexPolygonShape" id=3] points = PoolVector3Array( -0.5, 0.5, 0.5, 0.5, 0.5, -0.5, 0.5, 0.5, 0.5, -0.5, 0.5, -0.5, -0.5, -0.5, 0.5, 0.5, -0.5, -0.5, 0.5, -0.5, 0.5, -0.5, -0.5, -0.5, 0.5, 0.5, 0.5, -0.5, 0.5, -0.5, 0.5, 0.5, -0.5, -0.5, 0.5, 0.5, 0.5, -0.5, 0.5, -0.5, -0.5, -0.5, 0.5, -0.5, -0.5, -0.5, -0.5, 0.5, 0.5, 0.5, 0.5, -0.5, -0.5, 0.5, -0.5, 0.5, 0.5, 0.5, -0.5, 0.5, 0.5, 0.5, -0.5, -0.5, -0.5, -0.5, -0.5, 0.5, -0.5, 0.5, -0.5, -0.5 ) -[sub_resource type="CubeMesh" id=3] +[sub_resource type="CubeMesh" id=4] size = Vector3( 1, 1, 1 ) -[sub_resource type="ConvexPolygonShape" id=4] +[sub_resource type="ConvexPolygonShape" id=5] points = PoolVector3Array( -0.5, 0.5, 0.5, 0.5, 0.5, -0.5, 0.5, 0.5, 0.5, -0.5, 0.5, -0.5, -0.5, -0.5, 0.5, 0.5, -0.5, -0.5, 0.5, -0.5, 0.5, -0.5, -0.5, -0.5, 0.5, 0.5, 0.5, -0.5, 0.5, -0.5, 0.5, 0.5, -0.5, -0.5, 0.5, 0.5, 0.5, -0.5, 0.5, -0.5, -0.5, -0.5, 0.5, -0.5, -0.5, -0.5, -0.5, 0.5, 0.5, 0.5, 0.5, -0.5, -0.5, 0.5, -0.5, 0.5, 0.5, 0.5, -0.5, 0.5, 0.5, 0.5, -0.5, -0.5, -0.5, -0.5, -0.5, 0.5, -0.5, 0.5, -0.5, -0.5 ) +[sub_resource type="Animation" id=6] +resource_name = "SunRotate" +length = 12.0 +loop = true +tracks/0/type = "value" +tracks/0/path = NodePath(".:rotation_degrees") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/keys = { +"times": PoolRealArray( 0, 12 ), +"transitions": PoolRealArray( 1, 1 ), +"update": 0, +"values": [ Vector3( -90, 165, -180 ), Vector3( 270, 165, -180 ) ] +} +tracks/1/type = "value" +tracks/1/path = NodePath(".:light_energy") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/imported = false +tracks/1/enabled = true +tracks/1/keys = { +"times": PoolRealArray( 0, 3, 9 ), +"transitions": PoolRealArray( 1, 1, 1 ), +"update": 0, +"values": [ 1.0, 0.0, 0.0 ] +} + [node name="S_Main" type="Spatial"] script = ExtResource( 2 ) [node name="ArenaGeometry" type="Spatial" parent="."] [node name="Floor1" type="MeshInstance" parent="ArenaGeometry"] -transform = Transform( 40, 0, 0, 0, -6.51683e-06, -1, 0, 40, -1.62921e-07, 0.0313206, 9.53674e-07, 0.00365067 ) +transform = Transform( 40, 0, 0, 0, -6.51683e-06, -1, 0, 40, -1.62921e-07, 0.0192173, 9.53674e-07, 0.0214922 ) use_in_baked_light = true mesh = SubResource( 1 ) -material/0 = ExtResource( 6 ) +material/0 = SubResource( 2 ) [node name="StaticBody" type="StaticBody" parent="ArenaGeometry/Floor1"] [node name="CollisionShape" type="CollisionShape" parent="ArenaGeometry/Floor1/StaticBody"] -shape = SubResource( 2 ) +shape = SubResource( 3 ) [node name="Slope1" type="MeshInstance" parent="ArenaGeometry"] transform = Transform( 12, 0, 0, 0, 3.74016, -0.226577, 0, 8.02083, 0.105654, -13.502, 1.517, 0.041 ) use_in_baked_light = true -mesh = SubResource( 3 ) +mesh = SubResource( 4 ) material/0 = ExtResource( 7 ) [node name="StaticBody" type="StaticBody" parent="ArenaGeometry/Slope1"] @@ -47,79 +77,79 @@ transform = Transform( 1, 0, 0, 0, 1, 9.31323e-10, 0, -9.53674e-07, 1, 0, 0, 0 ) [node name="CollisionShape" type="CollisionShape" parent="ArenaGeometry/Slope1/StaticBody"] transform = Transform( 1, 0, 0, 0, 1, 0, 0, -9.53674e-07, 1, 0, 0, 0 ) -shape = SubResource( 2 ) +shape = SubResource( 3 ) [node name="SlopeWall1" type="MeshInstance" parent="ArenaGeometry"] transform = Transform( -1.18125e-06, -2.40367e-07, 0.25, -3.38095, 3.16392, 1.39296e-15, -7.25046, -1.47536, -4.07302e-08, -7.63, 0.147, 1.08 ) use_in_baked_light = true -mesh = SubResource( 3 ) +mesh = SubResource( 4 ) material/0 = ExtResource( 7 ) [node name="BigCube1" type="MeshInstance" parent="ArenaGeometry"] transform = Transform( -1.74846e-07, 12, -1.31134e-07, 0, -5.24537e-07, -3, -4, -5.24537e-07, 5.73206e-15, -13.5, 2, 6 ) use_in_baked_light = true -mesh = SubResource( 3 ) +mesh = SubResource( 4 ) material/0 = ExtResource( 7 ) [node name="StaticBody" type="StaticBody" parent="ArenaGeometry/BigCube1"] [node name="CollisionShape" type="CollisionShape" parent="ArenaGeometry/BigCube1/StaticBody"] -shape = SubResource( 2 ) +shape = SubResource( 3 ) [node name="BigCube2" type="MeshInstance" parent="ArenaGeometry"] transform = Transform( -1.74846e-07, 12, -1.31134e-07, 0, -5.24537e-07, -3, -4, -5.24537e-07, 5.73206e-15, 13.5, 2, -7.44552 ) use_in_baked_light = true -mesh = SubResource( 3 ) +mesh = SubResource( 4 ) material/0 = ExtResource( 7 ) [node name="StaticBody" type="StaticBody" parent="ArenaGeometry/BigCube2"] [node name="CollisionShape" type="CollisionShape" parent="ArenaGeometry/BigCube2/StaticBody"] -shape = SubResource( 2 ) +shape = SubResource( 3 ) [node name="Wall1" type="MeshInstance" parent="ArenaGeometry"] transform = Transform( 1, 0, 0, 0, -1.74846e-06, -6, 0, 40, -2.62268e-07, -19.5, 3.5, 0 ) use_in_baked_light = true -mesh = SubResource( 3 ) +mesh = SubResource( 4 ) material/0 = ExtResource( 7 ) [node name="StaticBody" type="StaticBody" parent="ArenaGeometry/Wall1"] [node name="CollisionShape" type="CollisionShape" parent="ArenaGeometry/Wall1/StaticBody"] -shape = SubResource( 4 ) +shape = SubResource( 5 ) [node name="Wall2" type="MeshInstance" parent="ArenaGeometry"] transform = Transform( 1, 0, 0, 0, -1.74846e-06, -6, 0, 40, -2.62268e-07, 19.5, 3.5, 0 ) use_in_baked_light = true -mesh = SubResource( 3 ) +mesh = SubResource( 4 ) material/0 = ExtResource( 7 ) [node name="StaticBody" type="StaticBody" parent="ArenaGeometry/Wall2"] [node name="CollisionShape" type="CollisionShape" parent="ArenaGeometry/Wall2/StaticBody"] -shape = SubResource( 4 ) +shape = SubResource( 5 ) [node name="Wall3" type="MeshInstance" parent="ArenaGeometry"] transform = Transform( -4.37114e-08, 40, -2.62268e-07, 0, -1.74846e-06, -6, -1, -1.74846e-06, 1.14641e-14, 0, 3.5, 19.5 ) use_in_baked_light = true -mesh = SubResource( 3 ) +mesh = SubResource( 4 ) material/0 = ExtResource( 7 ) [node name="StaticBody" type="StaticBody" parent="ArenaGeometry/Wall3"] [node name="CollisionShape" type="CollisionShape" parent="ArenaGeometry/Wall3/StaticBody"] -shape = SubResource( 4 ) +shape = SubResource( 5 ) [node name="Wall4" type="MeshInstance" parent="ArenaGeometry"] transform = Transform( -4.37114e-08, 40, -2.62268e-07, 0, -1.74846e-06, -6, -1, -1.74846e-06, 1.14641e-14, 0, 3.5, -19.5 ) use_in_baked_light = true -mesh = SubResource( 3 ) +mesh = SubResource( 4 ) material/0 = ExtResource( 7 ) [node name="StaticBody" type="StaticBody" parent="ArenaGeometry/Wall4"] [node name="CollisionShape" type="CollisionShape" parent="ArenaGeometry/Wall4/StaticBody"] -shape = SubResource( 4 ) +shape = SubResource( 5 ) [node name="Lighting" type="Spatial" parent="."] @@ -127,10 +157,18 @@ shape = SubResource( 4 ) environment = ExtResource( 1 ) [node name="DirectionalLight" type="DirectionalLight" parent="Lighting"] -transform = Transform( 0.965926, 0.198266, 0.166365, -2.09447e-07, -0.642788, 0.766044, 0.258818, -0.739942, -0.620885, 2.17494, 9.39172, -2.14115 ) -light_energy = 2.0 +transform = Transform( 0.965926, 3.37365e-07, -0.258819, -3.25841e-07, 1, 8.74227e-08, 0.258819, -1.10091e-10, 0.965925, 2.17494, 9.39172, -2.14115 ) +light_energy = 0.0 shadow_enabled = true -shadow_color = Color( 0.6, 0.6, 0.6, 1 ) + +[node name="AnimationPlayer" type="AnimationPlayer" parent="Lighting/DirectionalLight"] +autoplay = "SunRotate" +anims/SunRotate = SubResource( 6 ) + +[node name="Spatial" type="Spatial" parent="Lighting/DirectionalLight"] +transform = Transform( 0.965926, -3.25841e-07, 0.258819, 3.37365e-07, 1, -1.10099e-10, -0.258819, 8.74228e-08, 0.965926, -0.397392, -1.39189, -0.361859 ) + +[node name="CSGBox" type="CSGBox" parent="Lighting/DirectionalLight/Spatial"] [node name="Player" parent="." instance=ExtResource( 3 )] transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3, 0 ) @@ -139,12 +177,16 @@ transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3, 0 ) transform = Transform( -4.37114e-08, 0, 7, 0, 1.51, 0, -1, 0, -3.0598e-07, 13.25, 2, -5.25 ) [node name="FPS_Counter" parent="." instance=ExtResource( 5 )] +margin_left = 3.95751 +margin_top = 8.57983 +margin_right = 103.958 +margin_bottom = 30.5798 [node name="Label" type="Label" parent="."] -margin_left = 3.13708 -margin_top = 548.663 -margin_right = 356.137 -margin_bottom = 596.663 +margin_left = 7.89392 +margin_top = 31.358 +margin_right = 360.894 +margin_bottom = 79.358 text = "Made with <3 by the Mimimal64 Team This software is open-source and licensed under GPLv3 fork SuperV on https://tildegit.org/minimal64/superv" diff --git a/scenes/s_main/s_main.gd b/scenes/s_main/s_main.gd index 5926cf4..c957e7b 100644 --- a/scenes/s_main/s_main.gd +++ b/scenes/s_main/s_main.gd @@ -11,6 +11,7 @@ var mouse_mode: String = "CAPTURED" ################################################## func _ready() -> void: + print("SuperV Debug Terminal") if fast_close: print("** Fast Close enabled in the 's_main.gd' script **") print("** 'Esc' to close 'Shift + F1' to release mouse **")