ajout de la scène du cockpit

This commit is contained in:
2026-01-17 11:15:53 +01:00
parent ff4feacea3
commit 62b34473b6
34 changed files with 705 additions and 26 deletions

Binary file not shown.

View File

@@ -0,0 +1,77 @@
[remap]
importer="scene"
importer_version=1
type="PackedScene"
uid="uid://xsllr3c4yde1"
path="res://.godot/imported/cockpit.blend-043f73cf84b030cfc681bc4a789d77b2.scn"
[deps]
source_file="res://stages/cockpit/assets/3d/cockpit.blend"
dest_files=["res://.godot/imported/cockpit.blend-043f73cf84b030cfc681bc4a789d77b2.scn"]
[params]
nodes/root_type=""
nodes/root_name=""
nodes/root_script=null
nodes/apply_root_scale=true
nodes/root_scale=1.0
nodes/import_as_skeleton_bones=false
nodes/use_name_suffixes=true
nodes/use_node_type_suffixes=true
meshes/ensure_tangents=true
meshes/generate_lods=true
meshes/create_shadow_meshes=true
meshes/light_baking=1
meshes/lightmap_texel_size=0.2
meshes/force_disable_compression=false
skins/use_named_skins=true
animation/import=true
animation/fps=30
animation/trimming=false
animation/remove_immutable_tracks=true
animation/import_rest_as_RESET=false
import_script/path=""
materials/extract=0
materials/extract_format=0
materials/extract_path=""
_subresources={
"materials": {
"Holo": {
"use_external/enabled": true,
"use_external/fallback_path": "res://stages/cockpit/resources/materials/holo.tres",
"use_external/path": "uid://47j6hwb23gfs"
},
"MetalLight": {
"use_external/enabled": true,
"use_external/fallback_path": "res://stages/cockpit/resources/materials/metal_light.tres",
"use_external/path": "uid://itgletxb2jgb"
},
"Screen": {
"use_external/enabled": true,
"use_external/fallback_path": "res://stages/cockpit/resources/materials/screen.tres",
"use_external/path": "uid://d3vp57wyye6hw"
}
}
}
blender/nodes/visible=0
blender/nodes/active_collection_only=false
blender/nodes/punctual_lights=true
blender/nodes/cameras=true
blender/nodes/custom_properties=true
blender/nodes/modifiers=1
blender/meshes/colors=false
blender/meshes/uvs=true
blender/meshes/normals=true
blender/meshes/export_geometry_nodes_instances=false
blender/meshes/tangents=true
blender/meshes/skins=2
blender/meshes/export_bones_deforming_mesh_only=false
blender/materials/unpack_enabled=true
blender/materials/export_materials=1
blender/animation/limit_playback=true
blender/animation/always_sample=true
blender/animation/group_tracks=true
gltf/naming_version=2

Binary file not shown.

356
stages/cockpit/cockpit.tscn Normal file
View File

@@ -0,0 +1,356 @@
[gd_scene load_steps=28 format=3 uid="uid://fhnrl3dregsm"]
[ext_resource type="Script" uid="uid://b4tpigoloyxu0" path="res://stages/cockpit/scripts/cockpit.gd" id="1_koamw"]
[ext_resource type="Shader" uid="uid://bv2rghn44mrrf" path="res://stages/title_screen/resources/shaders/stars.gdshader" id="1_sk3hm"]
[ext_resource type="PackedScene" uid="uid://xsllr3c4yde1" path="res://stages/cockpit/assets/3d/cockpit.blend" id="2_3b5pk"]
[ext_resource type="Texture2D" uid="uid://l2xplg72hs6j" path="res://common/icons/map-pin.svg" id="3_3b5pk"]
[ext_resource type="PackedScene" uid="uid://cm5b7w7j6527f" path="res://stages/title_screen/planet_3d.tscn" id="3_oq6nq"]
[ext_resource type="Texture2D" uid="uid://dks6cugwif2em" path="res://common/icons/phone.svg" id="4_bse8l"]
[ext_resource type="Texture2D" uid="uid://dex283rx00fjb" path="res://common/icons/logout.svg" id="5_oq6nq"]
[ext_resource type="Script" uid="uid://bj4d1x8n8ina" path="res://stages/cockpit/scripts/cockpit_action.gd" id="6_22o3l"]
[ext_resource type="Script" uid="uid://jsxatpqfid88" path="res://stages/cockpit/scripts/cockpit_camera.gd" id="8_koamw"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_7a1qq"]
shader = ExtResource("1_sk3hm")
shader_parameter/sky_color = Color(0.03, 0.05, 0.11, 1)
shader_parameter/star_base_color = Color(0.8, 1, 0.3, 1)
shader_parameter/star_hue_offset = 0.6
shader_parameter/star_intensity = 0.08
shader_parameter/star_twinkle_speed = 0.8
shader_parameter/star_twinkle_intensity = 0.2
shader_parameter/layer_scale = 20.0
shader_parameter/layer_scale_step = 10.0
shader_parameter/layers_count = 3
[sub_resource type="Sky" id="Sky_65b6a"]
sky_material = SubResource("ShaderMaterial_7a1qq")
[sub_resource type="Environment" id="Environment_ers7b"]
background_mode = 2
sky = SubResource("Sky_65b6a")
sky_custom_fov = 61.7
ambient_light_source = 3
ambient_light_color = Color(1, 1, 1, 1)
ambient_light_sky_contribution = 0.85
ambient_light_energy = 2.0
reflected_light_source = 2
tonemap_mode = 2
tonemap_exposure = 0.7
tonemap_white = 1.84
glow_enabled = true
glow_intensity = 0.22
glow_bloom = 0.22
glow_hdr_threshold = 0.79
glow_hdr_scale = 0.0
glow_hdr_luminance_cap = 5.63
fog_light_energy = 0.58
fog_density = 0.0
fog_sky_affect = 0.0
adjustment_enabled = true
adjustment_saturation = 1.3
[sub_resource type="FastNoiseLite" id="FastNoiseLite_22o3l"]
seed = -1177198901
frequency = 1.0
[sub_resource type="Animation" id="Animation_koamw"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("../Planet3d:rotation:z")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [0.0]
}
[sub_resource type="Animation" id="Animation_22o3l"]
resource_name = "turn"
length = 50.0
loop_mode = 1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("../Planet3d:rotation:z")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 50),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [0.0, -6.283]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_biiuk"]
_data = {
&"RESET": SubResource("Animation_koamw"),
&"turn": SubResource("Animation_22o3l")
}
[sub_resource type="SphereShape3D" id="SphereShape3D_3b5pk"]
radius = 0.5618684
[sub_resource type="Animation" id="Animation_eodxe"]
resource_name = "hover"
length = 0.6
loop_mode = 1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite3D:scale")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.3, 0.6),
"transitions": PackedFloat32Array(1, 1, 1),
"update": 0,
"values": [Vector3(1, 1, 1), Vector3(1.4, 1.4, 1.4), Vector3(1, 1, 1)]
}
[sub_resource type="Animation" id="Animation_a2cx2"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite3D:scale")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector3(1, 1, 1)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_6o275"]
_data = {
&"RESET": SubResource("Animation_a2cx2"),
&"hover": SubResource("Animation_eodxe")
}
[sub_resource type="SphereShape3D" id="SphereShape3D_oq6nq"]
[sub_resource type="Animation" id="Animation_biiuk"]
resource_name = "hover"
length = 0.6
loop_mode = 1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite3D:scale")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.3, 0.6),
"transitions": PackedFloat32Array(1, 1, 1),
"update": 0,
"values": [Vector3(0.4, 0.4, 0.4), Vector3(0.6, 0.6, 0.6), Vector3(0.4, 0.4, 0.4)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Sprite3D2:scale")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.3, 0.6),
"transitions": PackedFloat32Array(1, 1, 1),
"update": 0,
"values": [Vector3(0.4, 0.4, 0.4), Vector3(0.6, 0.6, 0.6), Vector3(0.4, 0.4, 0.4)]
}
[sub_resource type="Animation" id="Animation_j2e5k"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite3D:scale")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector3(0.4, 0.4, 0.4)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Sprite3D2:scale")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector3(0.4, 0.4, 0.4)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_eodxe"]
_data = {
&"RESET": SubResource("Animation_j2e5k"),
&"hover": SubResource("Animation_biiuk")
}
[sub_resource type="Animation" id="Animation_oq6nq"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Camera3D:position:x")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [0.35664433]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Camera3D:position:y")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [0.0]
}
[sub_resource type="Animation" id="Animation_bse8l"]
resource_name = "arrive"
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Camera3D:position:x")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 1),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [1.5, 0.4649279]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Camera3D:position:y")
tracks/1/interp = 2
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.23333333, 0.5, 0.73333335, 1),
"transitions": PackedFloat32Array(1, 1, 1, 1, 1),
"update": 0,
"values": [0.0, -0.1, 0.0, -0.1, 0.0]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_4qr0g"]
_data = {
&"RESET": SubResource("Animation_oq6nq"),
&"arrive": SubResource("Animation_bse8l")
}
[node name="Cockpit" type="Node3D"]
script = ExtResource("1_koamw")
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource("Environment_ers7b")
[node name="Cockpit" parent="." instance=ExtResource("2_3b5pk")]
[node name="Planet3d" parent="." instance=ExtResource("3_oq6nq")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -33.448, -83.679, 0)
radius = 80.0
details = 112
noise = SubResource("FastNoiseLite_22o3l")
height = 11.26
[node name="AnimationPlayer" type="AnimationPlayer" parent="Planet3d"]
root_node = NodePath("../../ArriveAnimationPlayer")
libraries = {
&"": SubResource("AnimationLibrary_biiuk")
}
autoplay = "turn"
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
transform = Transform3D(0.88172376, -0.122102074, 0.45569107, -0.47176614, -0.22820692, 0.8516797, 0, -0.9659259, -0.25881907, 0.03206873, 3.2286942, -1.7533616)
light_color = Color(0.6287269, 0.4718002, 0.27988377, 1)
light_energy = 1.815
shadow_enabled = true
directional_shadow_mode = 1
directional_shadow_split_1 = 0.039
[node name="MapAction" type="Area3D" parent="." node_paths=PackedStringArray("animation_player")]
transform = Transform3D(-4.371139e-08, -0.9816273, 0.19080897, 0, 0.19080897, 0.9816273, -1, 4.290829e-08, -8.340525e-09, -0.652, -0.162, 0)
script = ExtResource("6_22o3l")
animation_player = NodePath("AnimationPlayer")
[node name="Sprite3D" type="Sprite3D" parent="MapAction"]
transform = Transform3D(1, 0, 0, 0, 1, 3.5787761e-16, 0, -3.5787761e-16, 1, 0, 0, 0)
texture = ExtResource("3_3b5pk")
[node name="CollisionShape3D" type="CollisionShape3D" parent="MapAction"]
transform = Transform3D(1, 2.1316282e-14, -5.3290705e-15, 0, 1, -3.5787743e-16, 0, -3.5787748e-16, 1, 4.1635495e-10, -0.011038661, -0.10670784)
shape = SubResource("SphereShape3D_3b5pk")
[node name="AnimationPlayer" type="AnimationPlayer" parent="MapAction"]
libraries = {
&"": SubResource("AnimationLibrary_6o275")
}
[node name="Communications" type="Area3D" parent="."]
visible = false
[node name="Sprite3D" type="Sprite3D" parent="Communications"]
transform = Transform3D(-1.7484556e-08, 0, -0.4, 0, 0.4, 0, 0.4, 0, -1.7484556e-08, -0.925, 0.13795245, -0.8395888)
texture = ExtResource("4_bse8l")
[node name="ExitAction" type="Area3D" parent="." node_paths=PackedStringArray("animation_player")]
unique_name_in_owner = true
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 0.35664433, 0, 0)
script = ExtResource("6_22o3l")
animation_player = NodePath("AnimationPlayer")
[node name="Sprite3D" type="Sprite3D" parent="ExitAction"]
transform = Transform3D(0.3899745, 0, -0.08899378, 0, 0.4, 0, 0.08899378, 0, 0.3899745, 1.22, -0.572, -1.003)
texture = ExtResource("5_oq6nq")
[node name="Sprite3D2" type="Sprite3D" parent="ExitAction"]
transform = Transform3D(0.38990447, 0, 0.089300044, 0, 0.4, 0, -0.089300044, 0, 0.38990447, -1.22, -0.572, -1.003)
flip_h = true
texture = ExtResource("5_oq6nq")
[node name="CollisionShape3D" type="CollisionShape3D" parent="ExitAction"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.1033944, -0.664206, -0.880886)
shape = SubResource("SphereShape3D_oq6nq")
[node name="CollisionShape3D2" type="CollisionShape3D" parent="ExitAction"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.103, -0.664, -0.881)
shape = SubResource("SphereShape3D_oq6nq")
[node name="AnimationPlayer" type="AnimationPlayer" parent="ExitAction"]
libraries = {
&"": SubResource("AnimationLibrary_eodxe")
}
[node name="Camera3D" type="Camera3D" parent="."]
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 0.35664433, 0, 0)
fov = 92.8
near = 0.003
script = ExtResource("8_koamw")
[node name="ArriveAnimationPlayer" type="AnimationPlayer" parent="."]
unique_name_in_owner = true
libraries = {
&"": SubResource("AnimationLibrary_4qr0g")
}
autoplay = "arrive"
[connection signal="clicked" from="MapAction" to="." method="_on_map_action_clicked"]
[connection signal="clicked" from="ExitAction" to="." method="_on_exit_action_clicked"]

View File

@@ -0,0 +1,7 @@
[gd_resource type="StandardMaterial3D" format=3 uid="uid://47j6hwb23gfs"]
[resource]
transparency = 1
blend_mode = 1
cull_mode = 2
albedo_color = Color(0.7175189, 0.37356204, 1.92523e-07, 1)

View File

@@ -0,0 +1,5 @@
[gd_resource type="StandardMaterial3D" format=3 uid="uid://c3p0vgn6adjiu"]
[resource]
transparency = 1
blend_mode = 1

View File

@@ -0,0 +1,3 @@
[gd_resource type="StandardMaterial3D" format=3 uid="uid://pwv7126nlcn2"]
[resource]

View File

@@ -0,0 +1,9 @@
[gd_resource type="StandardMaterial3D" format=3 uid="uid://itgletxb2jgb"]
[resource]
albedo_color = Color(0.57235396, 0.6842567, 0.7280819, 1)
metallic_specular = 0.0
stencil_flags = 2
stencil_reference = 2
stencil_color = Color(0.018611502, 0.019698085, 0.041198723, 1)
stencil_outline_thickness = 0.02

View File

@@ -0,0 +1,7 @@
[gd_resource type="ORMMaterial3D" format=3 uid="uid://d3vp57wyye6hw"]
[resource]
albedo_color = Color(1, 0.7176471, 0.011764706, 1)
emission_enabled = true
emission = Color(1, 0.7176471, 0.011764706, 1)
emission_energy_multiplier = 0.8

View File

@@ -0,0 +1,16 @@
extends Node3D
class_name Cockpit
func _ready():
if not GameInfo.game_data.get_current_planet_data():
%ExitAction.hide()
func _on_map_action_clicked():
SceneManager.change_scene(SceneManager.REGION_SELECTION_SCREEN)
func _on_exit_action_clicked():
if GameInfo.game_data.get_current_planet_data():
%ArriveAnimationPlayer.play_backwards("arrive")
await %ArriveAnimationPlayer.animation_finished
SceneManager.change_scene(SceneManager.PLANET_SCENE)

View File

@@ -0,0 +1 @@
uid://b4tpigoloyxu0

View File

@@ -0,0 +1,17 @@
extends Area3D
class_name CockpitAction
signal clicked
@export var animation_player : AnimationPlayer
func click():
clicked.emit()
func _on_mouse_entered():
if animation_player:
animation_player.play("hover")
func _on_mouse_exited():
if animation_player:
animation_player.stop()

View File

@@ -0,0 +1 @@
uid://bj4d1x8n8ina

View File

@@ -0,0 +1,39 @@
extends Camera3D
const RAY_LENGTH = 1000.
var cockpit_action_hovered : CockpitAction = null
var _mouse_event : InputEventMouse
var _query_mouse := false
func _unhandled_input(event):
if event is InputEventMouse:
_mouse_event = event
_query_mouse = true
if event.is_action_pressed("action") and cockpit_action_hovered and cockpit_action_hovered:
cockpit_action_hovered.click()
func _physics_process(_delta):
if _query_mouse:
update_mouse_hovered_cockpit_actions()
_query_mouse = false
func update_mouse_hovered_cockpit_actions() -> void:
var space_state = get_world_3d().direct_space_state
var from = project_ray_origin(_mouse_event.position)
var to = from + project_ray_normal(_mouse_event.position) * RAY_LENGTH
var query = PhysicsRayQueryParameters3D.create(from, to)
query.collide_with_areas = true
var result = space_state.intersect_ray(query)
if result.is_empty():
if cockpit_action_hovered:
cockpit_action_hovered._on_mouse_exited()
cockpit_action_hovered = null
elif result.collider is CockpitAction:
if cockpit_action_hovered and cockpit_action_hovered != result.collider:
cockpit_action_hovered._on_mouse_exited()
cockpit_action_hovered = result.collider
cockpit_action_hovered._on_mouse_entered()

View File

@@ -0,0 +1 @@
uid://jsxatpqfid88

View File

@@ -111,4 +111,4 @@ func _on_travel_validation_no_now_button_button_down():
func _on_return_button_button_down():
if GameInfo.game_data.get_current_planet_data():
SceneManager.change_scene(SceneManager.PLANET_SCENE)
SceneManager.change_scene(SceneManager.COCKPIT_SCENE)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 141 KiB

After

Width:  |  Height:  |  Size: 142 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 581 KiB

View File

@@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dsa7wbwjiebnw"
path="res://.godot/imported/moss_ground_texture.png-c04fbb538eff33b5a200a959b09aefb5.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://stages/terrain/planet/assets/textures/moss_biome/moss_ground_texture.png"
dest_files=["res://.godot/imported/moss_ground_texture.png-c04fbb538eff33b5a200a959b09aefb5.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 212 KiB

View File

@@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://ch4rydip0nlt6"
path="res://.godot/imported/moss_rock_atlas_texture.png-9e39fbed50de2857d6c90ff91f86917a.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://stages/terrain/planet/assets/textures/moss_biome/moss_rock_atlas_texture.png"
dest_files=["res://.godot/imported/moss_rock_atlas_texture.png-9e39fbed50de2857d6c90ff91f86917a.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

View File

@@ -1,9 +1,9 @@
[gd_resource type="ShaderMaterial" load_steps=3 format=3 uid="uid://dpxu8yeee4qi1"]
[ext_resource type="Shader" uid="uid://q5isn3rwrir8" path="res://common/vfx/materials/shaders/texture_color_filter.gdshader" id="1_6vcas"]
[ext_resource type="Texture2D" uid="uid://bnrjnvceprxfn" path="res://stages/terrain/planet/assets/textures/garden_background_texture.png" id="2_x0w2y"]
[ext_resource type="Shader" uid="uid://q5isn3rwrir8" path="res://common/vfx/materials/shaders/texture_color_filter.gdshader" id="1_k4e5t"]
[ext_resource type="Texture2D" uid="uid://bnrjnvceprxfn" path="res://stages/terrain/planet/assets/textures/garden_background_texture.png" id="2_k4e5t"]
[resource]
shader = ExtResource("1_6vcas")
shader_parameter/red_overlay_tex = ExtResource("2_x0w2y")
shader_parameter/scale = 0.006944444
shader = ExtResource("1_k4e5t")
shader_parameter/red_overlay_tex = ExtResource("2_k4e5t")
shader_parameter/scale = 0.005

View File

@@ -1,13 +1,13 @@
[gd_resource type="TileSet" load_steps=9 format=3 uid="uid://bqo32vh5etspf"]
[ext_resource type="Texture2D" uid="uid://ch4rydip0nlt6" path="res://stages/terrain/planet/assets/textures/moss_biome/moss_rock_atlas_texture.png" id="1_spfgy"]
[ext_resource type="Texture2D" uid="uid://dr72xhc07i56e" path="res://stages/terrain/planet/assets/textures/moss_biome/moss_contamination_atlas_texture.png" id="1_uqnql"]
[ext_resource type="Texture2D" uid="uid://ddecvei4l62gn" path="res://stages/terrain/planet/assets/textures/red_tiles.png" id="1_w5kw3"]
[ext_resource type="Texture2D" uid="uid://yl4dg6gerykb" path="res://stages/terrain/planet/assets/textures/green_tiles.png" id="2_04qcq"]
[ext_resource type="Texture2D" uid="uid://bi08trir23od2" path="res://stages/terrain/planet/assets/textures/red_rect.png" id="4_spfgy"]
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_4i8c6"]
resource_name = "Rock"
texture = ExtResource("1_w5kw3")
texture = ExtResource("1_spfgy")
texture_region_size = Vector2i(64, 64)
0:0/0 = 0
0:0/0/terrain_set = 0
@@ -178,11 +178,13 @@ texture_region_size = Vector2i(64, 64)
9:1/0 = 0
9:1/0/terrain_set = 0
9:1/0/terrain = 1
9:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-32, 32, -32, -16, -16, -32, 32, -32, 32, 16, 16, 32)
9:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-32, -32, 32, -32, 32, 32, -32, 32)
9:1/0/terrains_peering_bit/right_side = 1
9:1/0/terrains_peering_bit/bottom_right_corner = 1
9:1/0/terrains_peering_bit/bottom_side = 1
9:1/0/terrains_peering_bit/bottom_left_corner = 1
9:1/0/terrains_peering_bit/left_side = 1
9:1/0/terrains_peering_bit/top_left_corner = 1
9:1/0/terrains_peering_bit/top_side = 1
9:1/0/terrains_peering_bit/top_right_corner = 1
11:1/0 = 0
@@ -282,13 +284,15 @@ texture_region_size = Vector2i(64, 64)
10:2/0 = 0
10:2/0/terrain_set = 0
10:2/0/terrain = 1
10:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, 32, -32, 16, -32, -32, 16, -32, 32, -16, 32, 32)
10:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-32, -32, 32, -32, 32, 32, -32, 32)
10:2/0/terrains_peering_bit/right_side = 1
10:2/0/terrains_peering_bit/bottom_right_corner = 1
10:2/0/terrains_peering_bit/bottom_side = 1
10:2/0/terrains_peering_bit/bottom_left_corner = 1
10:2/0/terrains_peering_bit/left_side = 1
10:2/0/terrains_peering_bit/top_left_corner = 1
10:2/0/terrains_peering_bit/top_side = 1
10:2/0/terrains_peering_bit/top_right_corner = 1
11:2/0 = 0
11:2/0/terrain_set = 0
11:2/0/terrain = 1
@@ -322,6 +326,7 @@ texture_region_size = Vector2i(64, 64)
4:3/0/terrain_set = 0
4:3/0/terrain = 1
4:3/0/physics_layer_0/polygon_0/points = PackedVector2Array(-32, -16, -16, -32, 16, -32, 32, -16, 32, 16, 16, 32, -32, 32)
4:3/0/terrains_peering_bit/right_side = 1
4:3/0/terrains_peering_bit/bottom_side = 1
4:3/0/terrains_peering_bit/bottom_left_corner = 1
4:3/0/terrains_peering_bit/left_side = 1
@@ -384,6 +389,18 @@ texture_region_size = Vector2i(64, 64)
11:3/0/terrains_peering_bit/left_side = 1
11:3/0/terrains_peering_bit/top_left_corner = 1
11:3/0/terrains_peering_bit/top_side = 1
10:1/0 = 0
10:1/0/terrain_set = 0
10:1/0/terrain = 1
10:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-32, -32, 32, -32, 32, 32, -32, 32)
10:1/0/terrains_peering_bit/right_side = 1
10:1/0/terrains_peering_bit/bottom_right_corner = 1
10:1/0/terrains_peering_bit/bottom_side = 1
10:1/0/terrains_peering_bit/bottom_left_corner = 1
10:1/0/terrains_peering_bit/left_side = 1
10:1/0/terrains_peering_bit/top_left_corner = 1
10:1/0/terrains_peering_bit/top_side = 1
10:1/0/terrains_peering_bit/top_right_corner = 1
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_spfgy"]
resource_name = "Cristal"

View File

@@ -10,8 +10,6 @@ const MIN_PASS_DAY_ANIMATION_TIME : float = PassDay.TIME_MARGIN * 2
const TILE_SET : TileSet = preload("res://stages/terrain/planet/resources/moss_biome.tres")
const TILE_SCALE = 1
const TILE_SIZE : int = roundi(TILE_SET.tile_size.x * TILE_SCALE)
const GROUND_TILE_MAP_MATERIAL : Material = preload("res://stages/terrain/planet/resources/materials/ground_planet_tilemap.tres")
const CONTAMINATION_TILE_MAP_MATERIAL : Material = preload("res://stages/terrain/planet/resources/materials/contamination_planet_tilemap.tres")
const START_ROCK_HOLE_RADIUS = 5
const START_DECONTAMINATION_HOLE_RADIUS = 3
const CHUNK_TILE_SIZE : int = 20

View File

@@ -2,7 +2,7 @@
extends PlanetLayer
class_name GroundLayer
const MATERIAL : Material = preload("res://stages/terrain/planet/resources/materials/ground_planet_tilemap.tres")
const MATERIAL : Material = preload("res://stages/terrain/planet/resources/materials/moss_biome/ground_planet_tilemap.tres")
const GROUND_TILE_TERRAIN_SET : int = 0
const GROUND_TILE_TERRAIN : int = 3