diff --git a/project.godot b/project.godot index 58d4b9f..2c39951 100644 --- a/project.godot +++ b/project.godot @@ -299,6 +299,10 @@ translations=PoolStringArray( "res://locale/fr.po", "res://locale/en.po" ) name_num_separator=2 name_casing=2 +[physics] + +3d/physics_engine="GodotPhysics" + [rendering] threads/thread_model=2 diff --git a/scenes/game/alpha.tscn b/scenes/game/alpha.tscn index 3149001..9f52b68 100644 --- a/scenes/game/alpha.tscn +++ b/scenes/game/alpha.tscn @@ -1,40 +1,12 @@ -[gd_scene load_steps=8 format=2] +[gd_scene load_steps=3 format=2] -[ext_resource path="res://scenes/game/area_1_0.tscn" type="PackedScene" id=1] -[ext_resource path="res://scenes/game/area_0_0.tscn" type="PackedScene" id=2] -[ext_resource path="res://scenes/game/area_1_1.tscn" type="PackedScene" id=3] -[ext_resource path="res://scenes/game/area_0_1.tscn" type="PackedScene" id=4] -[ext_resource path="res://scenes/game/area_1_2.tscn" type="PackedScene" id=6] -[ext_resource path="res://scenes/game/area_2_2.tscn" type="PackedScene" id=7] +[ext_resource path="res://scenes/game/alpha.gd" type="Script" id=5] [ext_resource path="res://scenes/player/playerB.tscn" type="PackedScene" id=8] [node name="spatial" type="Spatial"] +script = ExtResource( 5 ) [node name="player" parent="." instance=ExtResource( 8 )] transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.01, 0 ) -[node name="area_0_0" parent="." instance=ExtResource( 2 )] - -[node name="area_0_1" parent="." instance=ExtResource( 4 )] -transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 10, 0, 0 ) - -[node name="area_1_0" parent="." instance=ExtResource( 1 )] -transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 10 ) - -[node name="area_1_1" parent="." instance=ExtResource( 3 )] -transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 10, 0, 10 ) - -[node name="area_1_2" parent="." instance=ExtResource( 6 )] -transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -9.9736, 0.0109801, -0.0108967 ) - -[node name="area_2_2" parent="." instance=ExtResource( 7 )] -transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -10, 0, 10 ) - -[node name="area_3_0" parent="." instance=ExtResource( 1 )] -transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 10, 0, -10 ) - -[node name="area_3_1" parent="." instance=ExtResource( 3 )] -transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -10 ) - -[node name="area_3_2" parent="." instance=ExtResource( 2 )] -transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -10, 0, -10 ) +[node name="map" type="Spatial" parent="."] diff --git a/scenes/game/area_0_0.tscn b/scenes/game/area_0_0.tscn index 3af5cff..579d69d 100644 --- a/scenes/game/area_0_0.tscn +++ b/scenes/game/area_0_0.tscn @@ -1,10 +1,10 @@ [gd_scene load_steps=4 format=2] -[sub_resource type="SpatialMaterial" id=2] +[sub_resource type="SpatialMaterial" id=1] albedo_color = Color( 0.717647, 0.0784314, 0.0784314, 1 ) -[sub_resource type="PlaneMesh" id=1] -material = SubResource( 2 ) +[sub_resource type="PlaneMesh" id=2] +material = SubResource( 1 ) [sub_resource type="ConcavePolygonShape" id=3] data = PoolVector3Array( 1, 0, 1, -1, 0, 1, 1, 0, -1, -1, 0, 1, -1, 0, -1, 1, 0, -1 ) @@ -13,7 +13,7 @@ data = PoolVector3Array( 1, 0, 1, -1, 0, 1, 1, 0, -1, -1, 0, 1, -1, 0, -1, 1, 0, [node name="mesh_instance" type="MeshInstance" parent="."] transform = Transform( 5, 0, 0, 0, 1, 0, 0, 0, 5, 0, 0, 0 ) -mesh = SubResource( 1 ) +mesh = SubResource( 2 ) material/0 = null [node name="static_body" type="StaticBody" parent="mesh_instance"]