Separated the level from the Game scene.

remotes/1705382094874458415/tmp_refs/heads/godot4-port
unfa 2020-06-14 01:14:58 +02:00
parent b5c5b4d274
commit ea0220852a
2 changed files with 61 additions and 30 deletions

View File

@ -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 )]

58
Level.tscn Normal file
View File

@ -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