fix post-proto
* ajout d'un fondu de musique au changement de phase * résolution de bugs en tout genre
This commit is contained in:
BIN
stages/title_screen/assets/textures/title.png
Normal file
BIN
stages/title_screen/assets/textures/title.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 28 KiB |
40
stages/title_screen/assets/textures/title.png.import
Normal file
40
stages/title_screen/assets/textures/title.png.import
Normal file
@@ -0,0 +1,40 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://cdpqg3pkjcw2h"
|
||||
path="res://.godot/imported/title.png-d45063d896f6ee3d177f9178ce51f6b0.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://stages/title_screen/assets/textures/title.png"
|
||||
dest_files=["res://.godot/imported/title.png-d45063d896f6ee3d177f9178ce51f6b0.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
|
||||
@@ -7,12 +7,14 @@ class_name Planet3D
|
||||
@export var radius : float = 8.0 :
|
||||
set(v):
|
||||
radius = maxf(1.0, v)
|
||||
update_terrain()
|
||||
update_water()
|
||||
if is_node_ready():
|
||||
update_terrain()
|
||||
update_water()
|
||||
@export var details : int = 64:
|
||||
set(v):
|
||||
details = maxi(1,v)
|
||||
update_terrain()
|
||||
if is_node_ready():
|
||||
update_terrain()
|
||||
|
||||
|
||||
@export_group("Terrain")
|
||||
@@ -24,8 +26,9 @@ class_name Planet3D
|
||||
@export var height : float = 1.0 :
|
||||
set(v):
|
||||
height = maxf(0.0, v)
|
||||
update_terrain()
|
||||
update_water()
|
||||
if is_node_ready():
|
||||
update_terrain()
|
||||
update_water()
|
||||
@export var terrain_material : Material:
|
||||
set(v):
|
||||
terrain_material = v
|
||||
@@ -34,17 +37,20 @@ class_name Planet3D
|
||||
|
||||
@export_tool_button("Random Noise", "Callable") var update_action = func():
|
||||
noise = generate_noise()
|
||||
update_terrain()
|
||||
if is_node_ready():
|
||||
update_terrain()
|
||||
|
||||
@export_group("Water")
|
||||
@export_range(0.0,1.0,0.05) var water_level := 0.:
|
||||
set(v):
|
||||
water_level = v
|
||||
update_water()
|
||||
if is_node_ready():
|
||||
update_water()
|
||||
@export var water_detail := 64:
|
||||
set(v):
|
||||
water_detail = maxi(1, v)
|
||||
update_water()
|
||||
if is_node_ready():
|
||||
update_water()
|
||||
@export var water_material : Material:
|
||||
set(v):
|
||||
water_material = v
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
[ext_resource type="Theme" uid="uid://bgcmd213j6gk1" path="res://gui/ressources/default_theme.tres" id="1_4ph5l"]
|
||||
[ext_resource type="Script" uid="uid://cwmp2une7hobe" path="res://stages/title_screen/scripts/title_screen.gd" id="1_6yuhi"]
|
||||
[ext_resource type="Texture2D" uid="uid://nx4wxpr6mk8l" path="res://gui/menu/assets/texture/SeedingPlanetsLogo.png" id="2_qnk88"]
|
||||
[ext_resource type="Texture2D" uid="uid://dcgnamu7sb3ov" path="res://common/icons/bolt.svg" id="3_6yuhi"]
|
||||
[ext_resource type="Texture2D" uid="uid://cdpqg3pkjcw2h" path="res://stages/title_screen/assets/textures/title.png" id="3_y6tw6"]
|
||||
[ext_resource type="LabelSettings" uid="uid://dqwayi8yjwau2" path="res://gui/ressources/title_label_settings.tres" id="4_y6tw6"]
|
||||
[ext_resource type="PackedScene" uid="uid://cm5b7w7j6527f" path="res://stages/title_screen/planet_3d.tscn" id="5_7a1qq"]
|
||||
[ext_resource type="Shader" uid="uid://bv2rghn44mrrf" path="res://stages/title_screen/resources/shaders/stars.gdshader" id="7_y6tw6"]
|
||||
@@ -11,8 +11,8 @@
|
||||
[sub_resource type="ViewportTexture" id="ViewportTexture_6yuhi"]
|
||||
viewport_path = NodePath("SubViewport")
|
||||
|
||||
[sub_resource type="FastNoiseLite" id="FastNoiseLite_6yuhi"]
|
||||
seed = 263046432
|
||||
[sub_resource type="FastNoiseLite" id="FastNoiseLite_7a1qq"]
|
||||
seed = -856983584
|
||||
frequency = 1.0
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_7a1qq"]
|
||||
@@ -87,7 +87,7 @@ alignment = 1
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 4
|
||||
theme_override_constants/separation = 20
|
||||
theme_override_constants/separation = 40
|
||||
alignment = 1
|
||||
|
||||
[node name="Logo" type="TextureRect" parent="MarginContainer/GridContainer/VBoxContainer"]
|
||||
@@ -96,7 +96,7 @@ custom_minimum_size = Vector2(400, 0)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 0
|
||||
texture = ExtResource("2_qnk88")
|
||||
texture = ExtResource("3_y6tw6")
|
||||
expand_mode = 5
|
||||
stretch_mode = 5
|
||||
|
||||
@@ -168,7 +168,7 @@ size = Vector2i(1980, 1080)
|
||||
|
||||
[node name="Planet3d" parent="SubViewport" instance=ExtResource("5_7a1qq")]
|
||||
unique_name_in_owner = true
|
||||
noise = SubResource("FastNoiseLite_6yuhi")
|
||||
noise = SubResource("FastNoiseLite_7a1qq")
|
||||
|
||||
[node name="Camera3D" type="Camera3D" parent="SubViewport"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 64.323425)
|
||||
|
||||
Reference in New Issue
Block a user