2023-01-07 18:12:23 +00:00
|
|
|
[gd_scene load_steps=14 format=3 uid="uid://bg88gc1w1gw5m"]
|
2023-01-07 00:55:31 +00:00
|
|
|
|
2023-01-07 17:25:46 +00:00
|
|
|
[ext_resource type="Shader" path="res://island/Sea.gdshader" id="1_agjfy"]
|
2023-01-07 02:29:15 +00:00
|
|
|
[ext_resource type="Texture2D" uid="uid://bdoifsf6k0qb8" path="res://assets/water_tile.png" id="1_w6ara"]
|
2023-01-07 18:23:07 +00:00
|
|
|
[ext_resource type="PackedScene" uid="uid://b5i1sqd88wlle" path="res://player/Player.tscn" id="3_5378m"]
|
2023-01-07 18:47:00 +00:00
|
|
|
[ext_resource type="PackedScene" uid="uid://cyuqnp5bfan4y" path="res://island/IslandMesh.tscn" id="3_g5ug0"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://tahdk48hqxis" path="res://island/HillMesh.tscn" id="4_5ll24"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://cxa5irr1atgke" path="res://island/PyramidSmallMesh.tscn" id="5_uf8hd"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://bknwefv5ycc3u" path="res://island/PyramidSmolMesh.tscn" id="6_klmt8"]
|
2023-01-07 10:44:15 +00:00
|
|
|
|
|
|
|
[sub_resource type="GDScript" id="GDScript_78lo3"]
|
|
|
|
script/source = "extends Node3D
|
|
|
|
|
|
|
|
|
|
|
|
# Called when the node enters the scene tree for the first time.
|
|
|
|
func _ready() -> void:
|
2023-01-07 18:47:00 +00:00
|
|
|
for node in $World.get_children():
|
|
|
|
var material: Material = node.get_active_material(0)
|
|
|
|
if material is StandardMaterial3D:
|
|
|
|
material.texture_filter = BaseMaterial3D.TextureFilter.TEXTURE_FILTER_NEAREST
|
2023-01-07 10:44:15 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
|
|
|
func _process(delta: float) -> void:
|
|
|
|
pass
|
|
|
|
"
|
2023-01-07 00:55:31 +00:00
|
|
|
|
2023-01-07 17:25:46 +00:00
|
|
|
[sub_resource type="ShaderMaterial" id="ShaderMaterial_3uyyi"]
|
|
|
|
render_priority = 0
|
|
|
|
shader = ExtResource("1_agjfy")
|
|
|
|
shader_parameter/speed_x = 1.0
|
|
|
|
shader_parameter/speed_y = 0.1
|
|
|
|
shader_parameter/size = 1000.0
|
|
|
|
shader_parameter/sea = ExtResource("1_w6ara")
|
2023-01-07 00:55:31 +00:00
|
|
|
|
|
|
|
[sub_resource type="PlaneMesh" id="PlaneMesh_4ibso"]
|
2023-01-07 17:25:46 +00:00
|
|
|
material = SubResource("ShaderMaterial_3uyyi")
|
2023-01-07 00:55:31 +00:00
|
|
|
size = Vector2(1000, 1000)
|
|
|
|
|
|
|
|
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_htlhh"]
|
|
|
|
sky_top_color = Color(0.356863, 0.623529, 0.937255, 1)
|
|
|
|
sky_horizon_color = Color(0.254902, 0.623529, 0.8, 1)
|
|
|
|
ground_bottom_color = Color(0.254902, 0.623529, 0.8, 1)
|
|
|
|
ground_horizon_color = Color(0.254902, 0.623529, 0.8, 1)
|
|
|
|
ground_curve = 7.89838
|
|
|
|
|
|
|
|
[sub_resource type="Sky" id="Sky_j6hso"]
|
|
|
|
sky_material = SubResource("ProceduralSkyMaterial_htlhh")
|
|
|
|
|
|
|
|
[sub_resource type="Environment" id="Environment_302o8"]
|
|
|
|
background_mode = 2
|
|
|
|
sky = SubResource("Sky_j6hso")
|
|
|
|
|
|
|
|
[node name="Island" type="Node3D"]
|
2023-01-07 10:44:15 +00:00
|
|
|
script = SubResource("GDScript_78lo3")
|
2023-01-07 00:55:31 +00:00
|
|
|
|
2023-01-07 18:12:23 +00:00
|
|
|
[node name="World" type="Node3D" parent="."]
|
|
|
|
|
|
|
|
[node name="Sea" type="MeshInstance3D" parent="World"]
|
2023-01-07 00:55:31 +00:00
|
|
|
mesh = SubResource("PlaneMesh_4ibso")
|
2023-01-07 18:12:23 +00:00
|
|
|
skeleton = NodePath("../..")
|
2023-01-07 00:55:31 +00:00
|
|
|
|
2023-01-07 18:47:00 +00:00
|
|
|
[node name="IslandMesh" parent="World" instance=ExtResource("3_g5ug0")]
|
2023-01-07 04:32:37 +00:00
|
|
|
|
2023-01-07 18:47:00 +00:00
|
|
|
[node name="HillMesh" parent="World" instance=ExtResource("4_5ll24")]
|
2023-01-07 10:44:15 +00:00
|
|
|
|
2023-01-07 18:47:00 +00:00
|
|
|
[node name="PyramidSmallMesh" parent="World" instance=ExtResource("5_uf8hd")]
|
2023-01-07 18:12:23 +00:00
|
|
|
|
2023-01-07 18:47:00 +00:00
|
|
|
[node name="PyramidSmolMesh" parent="World" instance=ExtResource("6_klmt8")]
|
2023-01-07 18:12:23 +00:00
|
|
|
|
2023-01-07 20:13:24 +00:00
|
|
|
[node name="PyramidSmallMesh2" parent="World" instance=ExtResource("5_uf8hd")]
|
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -27, 0, 35)
|
|
|
|
skeleton = NodePath("../../..")
|
|
|
|
|
|
|
|
[node name="PyramidSmolMesh2" parent="World" instance=ExtResource("6_klmt8")]
|
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -25, 0, 38)
|
|
|
|
skeleton = NodePath("../../..")
|
|
|
|
|
|
|
|
[node name="PyramidSmallMesh3" parent="World" instance=ExtResource("5_uf8hd")]
|
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -29, 0, 44)
|
|
|
|
skeleton = NodePath("../../..")
|
|
|
|
|
2023-01-07 00:55:31 +00:00
|
|
|
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
|
|
|
|
environment = SubResource("Environment_302o8")
|
|
|
|
|
|
|
|
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
|
|
|
|
transform = Transform3D(1, 0, 0, 0, -0.337161, 0.941447, 0, -0.941447, -0.337161, 0, 2.08989, 0)
|
2023-01-07 10:44:15 +00:00
|
|
|
|
|
|
|
[node name="Player" parent="." instance=ExtResource("3_5378m")]
|
|
|
|
transform = Transform3D(-1, 3.48787e-16, -8.74228e-08, 3.48787e-16, 1, -3.48787e-16, 8.74228e-08, -3.48787e-16, -1, 0, 4.89631, 0)
|