Unity and Cocos stay as parallel schemes; apps/minigame ships the Godot 4.7 WeChat pack for DevTools. Co-authored-by: Cursor <cursoragent@cursor.com>
200 lines
6.0 KiB
Plaintext
200 lines
6.0 KiB
Plaintext
[gd_scene load_steps=13 format=3 uid="uid://nomadro_main"]
|
|
|
|
[ext_resource type="Script" path="res://scripts/world_builder.gd" id="1_world"]
|
|
[ext_resource type="Script" path="res://scripts/player.gd" id="2_player"]
|
|
[ext_resource type="Script" path="res://scripts/hud.gd" id="3_hud"]
|
|
[ext_resource type="Texture2D" path="res://art/sky_klop.hdr" id="4_hdr"]
|
|
[ext_resource type="Script" path="res://scripts/game.gd" id="5_game"]
|
|
[ext_resource type="Script" path="res://scripts/smooth_camera.gd" id="6_cam"]
|
|
|
|
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_player"]
|
|
radius = 0.35
|
|
height = 1.7
|
|
|
|
[sub_resource type="CapsuleMesh" id="CapsuleMesh_player"]
|
|
radius = 0.35
|
|
height = 1.7
|
|
|
|
[sub_resource type="StandardMaterial3D" id="Mat_player"]
|
|
albedo_color = Color(0.96, 0.62, 0.2, 1)
|
|
|
|
[sub_resource type="PanoramaSkyMaterial" id="SkyMat"]
|
|
panorama = ExtResource("4_hdr")
|
|
|
|
[sub_resource type="Sky" id="Sky_main"]
|
|
sky_material = SubResource("SkyMat")
|
|
|
|
[sub_resource type="Environment" id="Environment_sky"]
|
|
background_mode = 2
|
|
sky = SubResource("Sky_main")
|
|
ambient_light_source = 3
|
|
ambient_light_color = Color(1, 0.9, 0.8, 1)
|
|
ambient_light_sky_contribution = 0.7
|
|
ambient_light_energy = 0.65
|
|
tonemap_mode = 2
|
|
tonemap_exposure = 1.08
|
|
glow_enabled = true
|
|
glow_intensity = 0.4
|
|
glow_bloom = 0.18
|
|
fog_enabled = true
|
|
fog_light_color = Color(1, 0.78, 0.55, 1)
|
|
fog_density = 0.0015
|
|
fog_sky_affect = 0.25
|
|
|
|
[node name="Main" type="Node3D"]
|
|
|
|
[node name="Game" type="Node" parent="."]
|
|
script = ExtResource("5_game")
|
|
|
|
[node name="World" type="Node3D" parent="."]
|
|
script = ExtResource("1_world")
|
|
|
|
[node name="Sun" type="DirectionalLight3D" parent="."]
|
|
transform = Transform3D(0.793353, -0.475528, 0.380236, 0, 0.624696, 0.780868, -0.608761, -0.619718, 0.495523, 4, 18, 10)
|
|
light_color = Color(1, 0.88, 0.7, 1)
|
|
light_energy = 1.65
|
|
shadow_enabled = false
|
|
|
|
[node name="Fill" type="DirectionalLight3D" parent="."]
|
|
transform = Transform3D(0.707107, 0.5, -0.5, 0, 0.707107, 0.707107, 0.707107, -0.5, 0.5, 0, 8, -6)
|
|
light_color = Color(0.5, 0.68, 1, 1)
|
|
light_energy = 0.4
|
|
shadow_enabled = false
|
|
|
|
[node name="Rim" type="DirectionalLight3D" parent="."]
|
|
transform = Transform3D(-0.866025, 0, -0.5, 0.25, 0.866025, -0.433013, 0.433013, -0.5, -0.75, -8, 6, -4)
|
|
light_color = Color(1, 0.5, 0.3, 1)
|
|
light_energy = 0.4
|
|
shadow_enabled = false
|
|
|
|
[node name="WorldEnv" type="WorldEnvironment" parent="."]
|
|
environment = SubResource("Environment_sky")
|
|
|
|
[node name="Player" type="CharacterBody3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.95, 6)
|
|
floor_stop_on_slope = true
|
|
script = ExtResource("2_player")
|
|
|
|
[node name="Body" type="MeshInstance3D" parent="Player"]
|
|
visible = false
|
|
mesh = SubResource("CapsuleMesh_player")
|
|
surface_material_override/0 = SubResource("Mat_player")
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Player"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.85, 0)
|
|
shape = SubResource("CapsuleShape3D_player")
|
|
|
|
[node name="CameraPivot" type="Node3D" parent="Player"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.15, 0)
|
|
|
|
[node name="Camera3D" type="Camera3D" parent="Player/CameraPivot"]
|
|
transform = Transform3D(1, 0, 0, 0, 0.939693, 0.34202, 0, -0.34202, 0.939693, 0, 1.55, 5.4)
|
|
current = true
|
|
fov = 56.0
|
|
far = 260.0
|
|
script = ExtResource("6_cam")
|
|
distance = 5.4
|
|
height = 2.7
|
|
lag = 7.5
|
|
|
|
[node name="HUD" type="CanvasLayer" parent="."]
|
|
script = ExtResource("3_hud")
|
|
|
|
[node name="Title" type="Label" parent="HUD"]
|
|
offset_left = 20.0
|
|
offset_top = 18.0
|
|
offset_right = 420.0
|
|
offset_bottom = 62.0
|
|
theme_override_colors/font_color = Color(1, 0.92, 0.72, 1)
|
|
theme_override_colors/font_outline_color = Color(0.05, 0.05, 0.08, 0.85)
|
|
theme_override_constants/outline_size = 8
|
|
theme_override_font_sizes/font_size = 28
|
|
text = "NOMADRÓ"
|
|
|
|
[node name="Hint" type="Label" parent="HUD"]
|
|
offset_left = 20.0
|
|
offset_top = 56.0
|
|
offset_right = 700.0
|
|
offset_bottom = 90.0
|
|
theme_override_colors/font_color = Color(1, 1, 1, 0.82)
|
|
theme_override_colors/font_outline_color = Color(0, 0, 0, 0.55)
|
|
theme_override_constants/outline_size = 4
|
|
theme_override_font_sizes/font_size = 15
|
|
text = "Chiang Mai Plaza"
|
|
|
|
[node name="Quest" type="Label" parent="HUD"]
|
|
offset_left = 20.0
|
|
offset_top = 88.0
|
|
offset_right = 720.0
|
|
offset_bottom = 120.0
|
|
theme_override_colors/font_color = Color(1, 0.85, 0.4, 1)
|
|
theme_override_colors/font_outline_color = Color(0.05, 0.04, 0.02, 0.75)
|
|
theme_override_constants/outline_size = 5
|
|
theme_override_font_sizes/font_size = 15
|
|
text = "Meet nomads 0/5"
|
|
|
|
[node name="Toast" type="Label" parent="HUD"]
|
|
anchors_preset = 5
|
|
anchor_left = 0.5
|
|
anchor_right = 0.5
|
|
offset_left = -260.0
|
|
offset_top = 120.0
|
|
offset_right = 260.0
|
|
offset_bottom = 160.0
|
|
grow_horizontal = 2
|
|
theme_override_colors/font_color = Color(1, 0.98, 0.9, 1)
|
|
theme_override_colors/font_outline_color = Color(0, 0, 0, 0.7)
|
|
theme_override_constants/outline_size = 7
|
|
theme_override_font_sizes/font_size = 17
|
|
horizontal_alignment = 1
|
|
text = ""
|
|
|
|
[node name="PoiToast" type="Label" parent="HUD"]
|
|
anchors_preset = 7
|
|
anchor_left = 0.5
|
|
anchor_top = 1.0
|
|
anchor_right = 0.5
|
|
anchor_bottom = 1.0
|
|
offset_left = -220.0
|
|
offset_top = -210.0
|
|
offset_right = 220.0
|
|
offset_bottom = -130.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 0
|
|
theme_override_colors/font_color = Color(1, 0.96, 0.88, 1)
|
|
theme_override_colors/font_outline_color = Color(0.05, 0.04, 0.02, 0.8)
|
|
theme_override_constants/outline_size = 8
|
|
theme_override_font_sizes/font_size = 18
|
|
horizontal_alignment = 1
|
|
vertical_alignment = 1
|
|
text = ""
|
|
|
|
[node name="Touch" type="Control" parent="HUD"]
|
|
layout_mode = 3
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
mouse_filter = 2
|
|
|
|
[node name="Joystick" type="Panel" parent="HUD/Touch"]
|
|
modulate = Color(1, 1, 1, 0.42)
|
|
layout_mode = 0
|
|
anchors_preset = 2
|
|
anchor_top = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_left = 28.0
|
|
offset_top = -200.0
|
|
offset_right = 188.0
|
|
offset_bottom = -40.0
|
|
grow_vertical = 0
|
|
|
|
[node name="Knob" type="Panel" parent="HUD/Touch/Joystick"]
|
|
modulate = Color(1, 0.78, 0.25, 0.92)
|
|
layout_mode = 0
|
|
offset_left = 45.0
|
|
offset_top = 45.0
|
|
offset_right = 115.0
|
|
offset_bottom = 115.0
|