Dev 0.1.0
* Ajout des logs et de la radio
This commit is contained in:
@@ -1,3 +1,41 @@
|
||||
[gd_scene format=3 uid="uid://d07wxwvl7nuhw"]
|
||||
|
||||
[node name="AstraEndBase" type="Node3D" unique_id=227915094]
|
||||
[ext_resource type="Texture2D" uid="uid://dnx175gw62h48" path="res://common/icons/alert-triangle.svg" id="1_50rbp"]
|
||||
[ext_resource type="LabelSettings" uid="uid://dqwayi8yjwau2" path="res://gui/ressources/title_label_settings.tres" id="2_1n2o5"]
|
||||
|
||||
[node name="AstraEndBase" type="Control" unique_id=1664898563]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="." unique_id=1438404365]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
alignment = 1
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="VBoxContainer" unique_id=1906157541]
|
||||
modulate = Color(1, 0.6509804, 0.09019608, 1)
|
||||
custom_minimum_size = Vector2(50, 50)
|
||||
layout_mode = 2
|
||||
texture = ExtResource("1_50rbp")
|
||||
expand_mode = 1
|
||||
stretch_mode = 5
|
||||
|
||||
[node name="Label" type="Label" parent="VBoxContainer" unique_id=919514282]
|
||||
layout_mode = 2
|
||||
text = "Work in progress"
|
||||
label_settings = ExtResource("2_1n2o5")
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="Label2" type="Label" parent="VBoxContainer" unique_id=1428920200]
|
||||
layout_mode = 2
|
||||
text = "This scene is not finished by the dev yet !
|
||||
You'll have to wait the release date ;)"
|
||||
horizontal_alignment = 1
|
||||
|
||||
@@ -194,6 +194,7 @@ transform = Transform3D(-1, 0, -8.742278e-08, 0, 1, 0, 8.742278e-08, 0, -1, 1.13
|
||||
[node name="Dashboard" parent="." unique_id=1374334508 instance=ExtResource("8_seqvk")]
|
||||
unique_name_in_owner = true
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.035136223, -0.7094687, 6.1824927)
|
||||
destination_text = ""
|
||||
|
||||
[node name="Shelf" parent="." unique_id=1769159984 instance=ExtResource("11_w4l7d")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.1218804, -1.0799314, 2.6211417)
|
||||
@@ -208,8 +209,7 @@ transform = Transform3D(-1, 0, 8.742278e-08, 0, 1, 0, -8.742278e-08, 0, -1, 1.18
|
||||
|
||||
[node name="InfiniteModeScreen" parent="." unique_id=1282307433 instance=ExtResource("13_wrlf0")]
|
||||
unique_name_in_owner = true
|
||||
transform = Transform3D(-1, 0, 1.509958e-07, 0, 1, 0, -1.509958e-07, 0, -1, 1.1896521, 0.015508115, 3.982)
|
||||
visible = false
|
||||
transform = Transform3D(-1, 0, 1.509958e-07, 0, 1, 0, -1.509958e-07, 0, -1, 1.1896521, 0.015508115, 2.8246548)
|
||||
|
||||
[node name="ShipTutorial" parent="." unique_id=868547496 node_paths=PackedStringArray("player") instance=ExtResource("13_u7lr8")]
|
||||
unique_name_in_owner = true
|
||||
|
||||
+3
@@ -24,10 +24,12 @@ texture = ExtResource("1_wfsg0")
|
||||
|
||||
[node name="BackgroundHexagonQuestion" type="Sprite3D" parent="." unique_id=789745739]
|
||||
unique_name_in_owner = true
|
||||
transform = Transform3D(1.465, 0, 0, 0, 1.465, 0, 0, 0, 1.465, 0, 0, 0)
|
||||
texture = ExtResource("4_0ou8m")
|
||||
|
||||
[node name="BackgroundHexagonLocked" type="Sprite3D" parent="." unique_id=485550950]
|
||||
unique_name_in_owner = true
|
||||
transform = Transform3D(1.47, 0, 0, 0, 1.47, 0, 0, 0, 1.47, 0, 0, 0)
|
||||
texture = ExtResource("3_udmux")
|
||||
|
||||
[node name="MutationTexture" type="Sprite3D" parent="." unique_id=1932614651]
|
||||
@@ -38,6 +40,7 @@ texture = ExtResource("1_d34h0")
|
||||
unique_name_in_owner = true
|
||||
script = ExtResource("6_0ou8m")
|
||||
interactable = false
|
||||
inspectable = true
|
||||
metadata/_custom_type_script = "uid://cf0b6gm06fvy1"
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="MutationElement" unique_id=1480063396]
|
||||
|
||||
+1
-1
@@ -76,6 +76,6 @@ autowrap_mode = 3
|
||||
|
||||
[node name="Icons" type="Node3D" parent="." unique_id=1135877944]
|
||||
unique_name_in_owner = true
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.029785365, 0.36184862)
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.029785365, 0.31404945)
|
||||
|
||||
[node name="ScreenModel" parent="." unique_id=1871285491 instance=ExtResource("3_5fpja")]
|
||||
|
||||
+1
-2
@@ -25,5 +25,4 @@ func update():
|
||||
if mutation:
|
||||
%MutationTexture.texture = mutation.get_icon()
|
||||
%MutationElement.mutation = mutation
|
||||
if state == State.DISCOVERED:
|
||||
%MutationElement.inspectable = true
|
||||
%MutationElement.inspectable = state == State.DISCOVERED
|
||||
|
||||
+1
-2
@@ -22,11 +22,10 @@ func update():
|
||||
for c in %Icons.get_children():
|
||||
c.queue_free()
|
||||
var n_mutation := len(all_mutations)
|
||||
var offset := .105
|
||||
var offset := .09
|
||||
var n_columns := 8
|
||||
var n_expected_rows := floori(float(n_mutation) / n_columns) + 1
|
||||
var n_missing_mutation = n_expected_rows * n_columns - n_mutation
|
||||
print(n_missing_mutation)
|
||||
for i in range(n_mutation):
|
||||
var el := MUTATION_DISCOVERY_ELEMENT_SCENE.instantiate() as MutationDiscoveryElement
|
||||
if i < mutations_unlocked:
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
[ext_resource type="PackedScene" uid="uid://i28ngc4hgq85" path="res://stages/3d_scenes/cockpit_scene/assets/3d/furnitures/screen.blend" id="1_c5x8t"]
|
||||
[ext_resource type="Script" uid="uid://bdwlxwoqf3dcj" path="res://stages/3d_scenes/cockpit_scene/cockpit_elements/scripts/plant_info_screen.gd" id="1_d4qoj"]
|
||||
[ext_resource type="Texture2D" uid="uid://bt3g5bmar0icf" path="res://common/icons/growth.svg" id="2_5jpjd"]
|
||||
[ext_resource type="Texture2D" uid="uid://dhy4ewvqvlxyi" path="res://common/icons/clock.svg" id="2_xwbvs"]
|
||||
[ext_resource type="Texture2D" uid="uid://cgmxjom200bej" path="res://common/icons/chevrons-up.svg" id="4_a7tuo"]
|
||||
[ext_resource type="Texture2D" uid="uid://c2qg7ikkylfv4" path="res://common/icons/seeds.svg" id="4_ihffg"]
|
||||
[ext_resource type="Texture2D" uid="uid://bgkivv66x80oj" path="res://common/icons/clock-death.svg" id="4_o0x5p"]
|
||||
[ext_resource type="Texture2D" uid="uid://b34qiqb1mslm" path="res://common/icons/clock-up.svg" id="5_ilibg"]
|
||||
[ext_resource type="Theme" uid="uid://bgcmd213j6gk1" path="res://gui/ressources/hud.tres" id="7_o0x5p"]
|
||||
[ext_resource type="Theme" uid="uid://5au2k3vf2po3" path="res://gui/ressources/menu.tres" id="8_ilibg"]
|
||||
|
||||
@@ -88,7 +88,7 @@ alignment = 1
|
||||
[node name="LifetimeIcon" type="TextureRect" parent="Sprite3D/SubViewport/VBoxContainer/StatsContainer/LifetimeStat" unique_id=855540661]
|
||||
custom_minimum_size = Vector2(80, 80)
|
||||
layout_mode = 2
|
||||
texture = ExtResource("2_xwbvs")
|
||||
texture = ExtResource("4_o0x5p")
|
||||
expand_mode = 3
|
||||
|
||||
[node name="LifetimeLabel" type="Label" parent="Sprite3D/SubViewport/VBoxContainer/StatsContainer/LifetimeStat" unique_id=1042555843]
|
||||
@@ -109,7 +109,7 @@ alignment = 1
|
||||
[node name="GrowingIcon" type="TextureRect" parent="Sprite3D/SubViewport/VBoxContainer/StatsContainer/GrowingStat" unique_id=613724045]
|
||||
custom_minimum_size = Vector2(40, 40)
|
||||
layout_mode = 2
|
||||
texture = ExtResource("4_a7tuo")
|
||||
texture = ExtResource("5_ilibg")
|
||||
expand_mode = 3
|
||||
|
||||
[node name="GrowingLabel" type="Label" parent="Sprite3D/SubViewport/VBoxContainer/StatsContainer/GrowingStat" unique_id=1156190508]
|
||||
|
||||
@@ -38,7 +38,7 @@ func _ready():
|
||||
|
||||
dashboard.destination_text = GameInfo.game_data.current_run.story_step.get_destination_text()
|
||||
|
||||
%MutationDiscoveryScreen.visible = GameInfo.game_data.game_mode == GameData.Mode.STORY
|
||||
%Phone.visible = GameInfo.game_data.game_mode == GameData.Mode.STORY
|
||||
%InfiniteModeScreen.visible = GameInfo.game_data.game_mode == GameData.Mode.INFINITE
|
||||
|
||||
func update_dialogs():
|
||||
|
||||
@@ -8,11 +8,12 @@ func _ready():
|
||||
Input.mouse_mode = Input.MOUSE_MODE_CAPTURED
|
||||
|
||||
AudioManager.play_music_alone("Estia", false, 0.)
|
||||
SteamConnection.unlock_achievement(SteamConnection.ACH_STW_REACH_ESTIA_BASE)
|
||||
|
||||
|
||||
func _on_pearl_clicked():
|
||||
%Pearl.hide()
|
||||
AudioManager.play_sfx("PickUp")
|
||||
AudioManager.play_sfx("PickUp")
|
||||
|
||||
await get_tree().create_timer(3.).timeout
|
||||
|
||||
|
||||
@@ -6,13 +6,14 @@ const MIN_PASS_DAY_ANIMATION_TIME : float = PassDay.TIME_MARGIN * 2
|
||||
const WIN_WAVE_SCENE : PackedScene = preload("res://stages/terrain/region/win_wave.tscn")
|
||||
const TALION_CELL_SCENE : PackedScene = preload("res://entities/interactables/talion_cell/talion_cell.tscn")
|
||||
const ENERGY_CELL_SCENE : PackedScene = preload("res://entities/interactables/energy_cell/energy_cell.tscn")
|
||||
const RADIO_SCENE : PackedScene = preload("res://entities/interactables/radio/radio.tscn")
|
||||
|
||||
const TILE_SET : TileSet = preload("res://stages/terrain/region/resources/moss_biome.tres")
|
||||
const TILE_SCALE = 1
|
||||
const TILE_SIZE : int = roundi(TILE_SET.tile_size.x * TILE_SCALE)
|
||||
const SPAWN_OBJECT_RANDOM_MOVEMENT = 200
|
||||
const DOORS_RANDOM_MOVEMENT = 3000
|
||||
const CELLS_RANDOM_MOVEMENT = 3500
|
||||
const DOORS_RANDOM_MOVEMENT = 2500
|
||||
const CELLS_RANDOM_MOVEMENT = 3000
|
||||
|
||||
const REGION_LIMIT = 4000
|
||||
const CHUNK_TILE_SIZE : int = 10
|
||||
@@ -48,7 +49,6 @@ var data_last_updated = 0.
|
||||
var plant_grid : PlantGrid
|
||||
|
||||
# Cheat Code
|
||||
# TOCHANGE
|
||||
func _input(_e):
|
||||
if (
|
||||
Input.is_action_pressed("drop")
|
||||
@@ -92,6 +92,7 @@ func _ready():
|
||||
recharge_station.update()
|
||||
generate_talion_cells()
|
||||
generate_energy_cells()
|
||||
generate_radio()
|
||||
|
||||
for m in data.modifiers:
|
||||
m.region_ready(self)
|
||||
@@ -206,6 +207,16 @@ func generate_energy_cells() -> Array[EnergyCell]:
|
||||
|
||||
return tcs
|
||||
|
||||
func generate_radio() -> Radio:
|
||||
var new_radio := (RADIO_SCENE.instantiate() as Radio)
|
||||
new_radio.name = "Radio"
|
||||
|
||||
add_entity(new_radio)
|
||||
|
||||
random_move_object(new_radio, CELLS_RANDOM_MOVEMENT)
|
||||
|
||||
return new_radio
|
||||
|
||||
func get_generated_value() -> float:
|
||||
# if layer_pack:
|
||||
# return layer_pack.generated_value
|
||||
|
||||
@@ -76,7 +76,7 @@ func _process(delta):
|
||||
%Planet3d.rotate(Vector3.UP, planet_rotation.x * delta)
|
||||
%Planet3d.rotate(Vector3.RIGHT, planet_rotation.y * delta)
|
||||
|
||||
if not planet_spin_ach_sended and planet_rotation.length() > 50:
|
||||
if not planet_spin_ach_sended and planet_rotation.length() > 100:
|
||||
planet_spin_ach_sended = true
|
||||
SteamConnection.unlock_achievement(SteamConnection.ACH_SPIN_PLANET)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user