]> Untitled Git - star-foxy.git/blobdiff - main.tscn
Updated with keyboard controls
[star-foxy.git] / main.tscn
index f7f409338a8d8cbe5da81c46fbfe891c2701eac0..90737313cb0e811efcc3f37c6cdef5d2eba72022 100644 (file)
--- a/main.tscn
+++ b/main.tscn
@@ -1,6 +1,45 @@
-[gd_scene load_steps=2 format=2]
+[gd_scene load_steps=6 format=2]
 
 [ext_resource path="res://player/player.tscn" type="PackedScene" id=1]
+[ext_resource path="res://obstacle.tres" type="Material" id=2]
+
+[sub_resource type="VisualShaderNodeColorConstant" id=1]
+constant = Color( 0.00150203, 0.503906, 0.0800027, 1 )
+
+[sub_resource type="VisualShader" id=2]
+code = "shader_type spatial;
+render_mode specular_schlick_ggx;
+
+
+
+
+void vertex() {
+// Output:0
+
+}
+
+void fragment() {
+// Color:2
+       vec3 n_out2p0 = vec3(0.001502, 0.503906, 0.080003);
+       float n_out2p1 = 1.000000;
+
+// Output:0
+       ALBEDO = n_out2p0;
+
+}
+
+void light() {
+// Output:0
+
+}
+"
+graph_offset = Vector2( -479.705, 4.5 )
+nodes/fragment/2/node = SubResource( 1 )
+nodes/fragment/2/position = Vector2( 20, 160 )
+nodes/fragment/connections = PoolIntArray( 2, 0, 0, 0 )
+
+[sub_resource type="ShaderMaterial" id=3]
+shader = SubResource( 2 )
 
 [node name="world" type="Spatial"]
 
 
 [node name="CSGBox" type="CSGBox" parent="boxes"]
 transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 8 )
+material_override = ExtResource( 2 )
 
 [node name="CSGBox2" type="CSGBox" parent="boxes"]
 transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 10.6742, 0, 0 )
+material_override = ExtResource( 2 )
 
 [node name="CSGBox3" type="CSGBox" parent="boxes"]
 transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -11.353, 0, 0 )
+material_override = ExtResource( 2 )
 
-[node name="CSGBox4" type="CSGBox" parent="boxes"]
+[node name="floor" type="CSGBox" parent="boxes"]
 transform = Transform( 111, 0, 0, 0, 1, 0, 0, 0, 111, 0, -11, 0 )
+material_override = SubResource( 3 )
 
 [node name="arwing" parent="." instance=ExtResource( 1 )]
 transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0547695, 0, 35.9027 )