diff --git a/Game.tscn b/Game.tscn index d2be38b..d7cef28 100644 --- a/Game.tscn +++ b/Game.tscn @@ -1,39 +1,12 @@ -[gd_scene load_steps=5 format=2] +[gd_scene load_steps=4 format=2] [ext_resource path="res://Player.tscn" type="PackedScene" id=1] [ext_resource path="res://Game.gd" type="Script" id=2] - -[sub_resource type="BoxShape" id=1] - -[sub_resource type="CubeMesh" id=2] +[ext_resource path="res://Level.tscn" type="PackedScene" id=3] [node name="Game" type="Spatial"] script = ExtResource( 2 ) -is_server = false -[node name="Level" type="Spatial" parent="."] - -[node name="RigidBody" type="RigidBody" parent="Level"] -transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 4.22547, 0 ) - -[node name="CollisionShape" type="CollisionShape" parent="Level/RigidBody"] -shape = SubResource( 1 ) - -[node name="MeshInstance" type="MeshInstance" parent="Level/RigidBody"] -mesh = SubResource( 2 ) -material/0 = null - -[node name="CSGCombiner" type="CSGCombiner" parent="Level"] -use_collision = true - -[node name="CSGBox" type="CSGBox" parent="Level/CSGCombiner"] -width = 14.0 -depth = 14.0 - -[node name="CSGBox2" type="CSGBox" parent="Level/CSGCombiner"] -transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0 ) -operation = 2 -width = 12.0 -depth = 12.0 +[node name="Level" parent="." instance=ExtResource( 3 )] [node name="Player" parent="." instance=ExtResource( 1 )] diff --git a/Level.tscn b/Level.tscn new file mode 100644 index 0000000..8cab5a6 --- /dev/null +++ b/Level.tscn @@ -0,0 +1,58 @@ +[gd_scene load_steps=3 format=2] + +[sub_resource type="BoxShape" id=1] + +[sub_resource type="CubeMesh" id=2] + +[node name="Level" type="Spatial"] + +[node name="RigidBody" type="RigidBody" parent="."] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 4.22547, 0 ) + +[node name="CollisionShape" type="CollisionShape" parent="RigidBody"] +shape = SubResource( 1 ) + +[node name="MeshInstance" type="MeshInstance" parent="RigidBody"] +mesh = SubResource( 2 ) +material/0 = null + +[node name="CSGCombiner" type="CSGCombiner" parent="."] +use_collision = true + +[node name="CSGBox" type="CSGBox" parent="CSGCombiner"] +width = 14.0 +depth = 14.0 + +[node name="CSGBox2" type="CSGBox" parent="CSGCombiner"] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0 ) +operation = 2 +width = 12.0 +depth = 12.0 + +[node name="CSGBox4" type="CSGBox" parent="CSGCombiner"] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 4, -12 ) +width = 14.0 +depth = 14.0 + +[node name="CSGBox3" type="CSGBox" parent="CSGCombiner"] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 5, -12 ) +operation = 2 +width = 12.0 +depth = 12.0 + +[node name="CSGBox6" type="CSGBox" parent="CSGCombiner"] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 14, 8, -5 ) +width = 14.0 +depth = 14.0 + +[node name="CSGBox5" type="CSGBox" parent="CSGCombiner"] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 14, 9, -5 ) +operation = 2 +width = 12.0 +depth = 12.0 + +[node name="CSGCylinder" type="CSGCylinder" parent="CSGCombiner"] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -4, 7, 4 ) +radius = 3.0 +height = 14.0 +sides = 16