added proper touch controls and put terrain in a separate file
This commit is contained in:
parent
3be1d07acd
commit
bdfcc74491
10 changed files with 77 additions and 35 deletions
|
|
@ -1,8 +1,6 @@
|
|||
[gd_scene load_steps=31 format=3 uid="uid://cavbs8gurvpfh"]
|
||||
[gd_scene load_steps=30 format=3 uid="uid://cavbs8gurvpfh"]
|
||||
|
||||
[ext_resource type="Terrain3DStorage" uid="uid://c4h6ufb0esmas" path="res://worlds/terrain1/terrain1_storage.res" id="1_k1mvv"]
|
||||
[ext_resource type="Terrain3DMaterial" uid="uid://c6ppgrnektc8g" path="res://worlds/terrain1/terrain1_material.tres" id="2_2cdhe"]
|
||||
[ext_resource type="Terrain3DAssets" uid="uid://bh60t03kfpvux" path="res://worlds/terrain1/terrain1_assets.tres" id="3_5hdjg"]
|
||||
[ext_resource type="PackedScene" uid="uid://dvujb1wo0or87" path="res://worlds/terrain1/terrain1_terrain_3d.tscn" id="1_xh2t6"]
|
||||
[ext_resource type="PackedScene" uid="uid://dawpmu4vvv3rs" path="res://entities/monster_spawnpoint/monster_spawnpoint.tscn" id="4_l81pf"]
|
||||
[ext_resource type="Script" uid="uid://b44bktvws5v3s" path="res://entities/monster_spawnpoint/monster_spawnpoint_probability.gd" id="5_6bskj"]
|
||||
[ext_resource type="Resource" uid="uid://0xqaef8uftnv" path="res://resources/monsters/debuggy.tres" id="6_of6wf"]
|
||||
|
|
@ -45,6 +43,8 @@ script = ExtResource("5_6bskj")
|
|||
monster_data = ExtResource("6_of6wf")
|
||||
chance = 100.0
|
||||
|
||||
[sub_resource type="WorldBoundaryShape3D" id="WorldBoundaryShape3D_77mbb"]
|
||||
|
||||
[node name="Terrain1" type="Node3D"]
|
||||
|
||||
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
|
||||
|
|
@ -54,13 +54,10 @@ shadow_enabled = true
|
|||
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
|
||||
environment = SubResource("Environment_tunrb")
|
||||
|
||||
[node name="Terrain3D" type="Terrain3D" parent="."]
|
||||
storage = ExtResource("1_k1mvv")
|
||||
material = ExtResource("2_2cdhe")
|
||||
assets = ExtResource("3_5hdjg")
|
||||
render_cast_shadows = 0
|
||||
collision_layer = 2
|
||||
collision_mask = 9
|
||||
[node name="Terrain3D" parent="." instance=ExtResource("1_xh2t6")]
|
||||
collision_enabled = true
|
||||
collision_mask = 13
|
||||
visible = true
|
||||
|
||||
[node name="Stones" type="Node3D" parent="."]
|
||||
|
||||
|
|
@ -151,3 +148,10 @@ spawnable_monsters = Array[ExtResource("5_6bskj")]([SubResource("Resource_rgf8x"
|
|||
min_level = 2
|
||||
max_level = 5
|
||||
ignore_visibility = true
|
||||
|
||||
[node name="StaticBody3D" type="StaticBody3D" parent="."]
|
||||
collision_layer = 2
|
||||
collision_mask = 13
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="StaticBody3D"]
|
||||
shape = SubResource("WorldBoundaryShape3D_77mbb")
|
||||
|
|
|
|||
|
|
@ -39,4 +39,5 @@ _shader_parameters = {
|
|||
"noise_texture": SubResource("NoiseTexture2D_i4bum"),
|
||||
"vertex_normals_distance": 128.0
|
||||
}
|
||||
world_background = 0
|
||||
auto_shader = true
|
||||
|
|
|
|||
15
worlds/terrain1/terrain1_terrain_3d.tscn
Normal file
15
worlds/terrain1/terrain1_terrain_3d.tscn
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
[gd_scene load_steps=4 format=3 uid="uid://dvujb1wo0or87"]
|
||||
|
||||
[ext_resource type="Terrain3DStorage" uid="uid://c4h6ufb0esmas" path="res://worlds/terrain1/terrain1_storage.res" id="1_2k2pr"]
|
||||
[ext_resource type="Terrain3DMaterial" uid="uid://c6ppgrnektc8g" path="res://worlds/terrain1/terrain1_material.tres" id="2_x3dgu"]
|
||||
[ext_resource type="Terrain3DAssets" uid="uid://bh60t03kfpvux" path="res://worlds/terrain1/terrain1_assets.tres" id="3_1cb50"]
|
||||
|
||||
[node name="Terrain3D" type="Terrain3D"]
|
||||
storage = ExtResource("1_2k2pr")
|
||||
material = ExtResource("2_x3dgu")
|
||||
assets = ExtResource("3_1cb50")
|
||||
render_cast_shadows = 0
|
||||
collision_enabled = false
|
||||
collision_layer = 2
|
||||
collision_mask = 9
|
||||
visible = false
|
||||
Loading…
Add table
Add a link
Reference in a new issue