Dev de la démo
* Modification de l'apparence de l'UI des dialogues * Changement de l'ordre de déblocage des mutations * Ajout d'une confirmation pour l'abandon * Ajout de la scène de fin avec la base Boréa, en tant que fin de démo * Modification des icône de durée de vie, temps de pousse, et de mort * Ajout d'un icône au dessus du joueur quand il n'a plus d'énergie * Amélioration des dialogues du jeu * Changement du modèle du téléphone * Ajout de cellule d'énergie et de cellule de talion trouvable sur la carte * Il est à nouveau possible de se recharger après la fin d'une région * Buff des mutations ancien sociale et solide * Modification de la mutation fertile (ne donne de gain de graine qu'à la maturation) * Ajout d'une récupération automatique des graines * Ajout de deux cartons de tutoriel ainsi qu'une option pour les revoir dans l'aide de jeu * Amélioration générale du tutoriel * Ajout d'un écran titre digne de ce nom * Lors de l'arrivée à destination, ne téléporte plus le joueur sur une map vide, mais directement dans les lieux de cinématique * Ajout graphique de plus de pattern de mousse et de roche * Le talion apparait maintenant sur toute la carte * La roche peut désormais apparaitre sur la zone de départ * Ajout dud modificateur de région Canyon * Equilibrage général * Fix de bugs en tout genre
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -2,9 +2,9 @@
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://bt3g5bmar0icf" path="res://common/icons/growth.svg" id="1_yxwcd"]
|
||||
[ext_resource type="Theme" uid="uid://5au2k3vf2po3" path="res://gui/ressources/menu.tres" id="2_wxnr5"]
|
||||
[ext_resource type="Texture2D" uid="uid://d3ksdxepcjoot" path="res://common/icons/calendar-week.svg" id="3_t30ml"]
|
||||
[ext_resource type="Texture2D" uid="uid://cgmxjom200bej" path="res://common/icons/chevrons-up.svg" id="4_d4ybk"]
|
||||
[ext_resource type="Texture2D" uid="uid://b34qiqb1mslm" path="res://common/icons/clock-up.svg" id="4_yxwcd"]
|
||||
[ext_resource type="Texture2D" uid="uid://dhy4ewvqvlxyi" path="res://common/icons/clock.svg" id="5_3lk2g"]
|
||||
[ext_resource type="Texture2D" uid="uid://bgkivv66x80oj" path="res://common/icons/clock-death.svg" id="5_wxnr5"]
|
||||
[ext_resource type="Texture2D" uid="uid://c2qg7ikkylfv4" path="res://common/icons/seeds.svg" id="6_tr36d"]
|
||||
[ext_resource type="Texture2D" uid="uid://dcgnamu7sb3ov" path="res://common/icons/bolt.svg" id="7_ubf5w"]
|
||||
[ext_resource type="Texture2D" uid="uid://cymrmhsihkj44" path="res://common/icons/recharge.svg" id="8_uvt1i"]
|
||||
@@ -38,7 +38,7 @@ theme_override_constants/separation = 4
|
||||
custom_minimum_size = Vector2(25, 25)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
texture = ExtResource("3_t30ml")
|
||||
texture = ExtResource("5_3lk2g")
|
||||
expand_mode = 1
|
||||
stretch_mode = 5
|
||||
|
||||
@@ -56,7 +56,7 @@ theme_override_constants/separation = 4
|
||||
custom_minimum_size = Vector2(25, 25)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
texture = ExtResource("4_d4ybk")
|
||||
texture = ExtResource("4_yxwcd")
|
||||
expand_mode = 1
|
||||
stretch_mode = 5
|
||||
|
||||
@@ -74,7 +74,7 @@ theme_override_constants/separation = 4
|
||||
custom_minimum_size = Vector2(25, 25)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
texture = ExtResource("5_3lk2g")
|
||||
texture = ExtResource("5_wxnr5")
|
||||
expand_mode = 1
|
||||
stretch_mode = 5
|
||||
|
||||
|
||||
118
gui/game/help/scripts/help.gd
Normal file
118
gui/game/help/scripts/help.gd
Normal file
@@ -0,0 +1,118 @@
|
||||
extends Control
|
||||
class_name Help
|
||||
|
||||
signal tutorial_passed
|
||||
|
||||
func _ready():
|
||||
%EnergyTutorial.hide()
|
||||
%PlantInfoTutorial.hide()
|
||||
%MutationTutorial.hide()
|
||||
%PlantpointsTutorial.hide()
|
||||
|
||||
func display_energy_tutorial():
|
||||
%EnergyTutorialInfo.update(3,3,false)
|
||||
%EnergyTutorialAnimationPlayer.play("appear")
|
||||
Pointer.action_disabled = true
|
||||
|
||||
func display_plant_info_tutorial(
|
||||
with_card_info : CardInfo = get_false_plant_card_info()
|
||||
):
|
||||
%PlantInfoCard.info = with_card_info
|
||||
%PlantInfoCard.update()
|
||||
%PlantInfoTutorialAnimationPlayer.play("appear")
|
||||
Pointer.action_disabled = true
|
||||
|
||||
func display_mutations_tutorial(with_card_info : CardInfo = get_false_plant_card_info(true)):
|
||||
%MutationCard.info = with_card_info
|
||||
%MutationCard.update()
|
||||
%MutationTutorialAnimationPlayer.play("appear")
|
||||
Pointer.action_disabled = true
|
||||
|
||||
func display_plant_point_tutorial():
|
||||
%PlantPointTutorialAnimationPlayer.play("appear")
|
||||
Pointer.action_disabled = true
|
||||
|
||||
func get_false_plant_card_info(with_mutation = false):
|
||||
var data = PlantData.new()
|
||||
|
||||
var info = CardInfo.new(
|
||||
data.plant_name,
|
||||
tr("MATURE") if data.is_mature() else tr("JUVENILE")
|
||||
)
|
||||
|
||||
info.important_stat_icon = Plant.SCORE_ICON
|
||||
info.important_stat_text = "%d" % 0
|
||||
info.type_icon = Plant.PLANT_TYPE_ICON
|
||||
|
||||
|
||||
info.stats.append_array([
|
||||
CardStatInfo.new(
|
||||
str(1),
|
||||
Plant.DURATION_ICON
|
||||
),
|
||||
CardStatInfo.new(
|
||||
str(2),
|
||||
Plant.GROWING_ICON
|
||||
),
|
||||
CardStatInfo.new(
|
||||
str(6),
|
||||
Plant.LIFETIME_ICON
|
||||
),
|
||||
CardStatInfo.new(
|
||||
str(1),
|
||||
Plant.SEED_ICON
|
||||
),
|
||||
])
|
||||
|
||||
if with_mutation:
|
||||
info.sections.append(AncientMutation.new().card_section())
|
||||
|
||||
return info
|
||||
|
||||
func _on_energy_button_tutorial_button_down():
|
||||
display_energy_tutorial()
|
||||
|
||||
func _on_plant_button_tutorial_button_down():
|
||||
display_plant_info_tutorial()
|
||||
|
||||
|
||||
func _on_mutation_button_tutorial_button_down():
|
||||
display_mutations_tutorial()
|
||||
|
||||
|
||||
func _on_plant_point_button_tutorial_button_down():
|
||||
display_plant_point_tutorial()
|
||||
|
||||
func _on_energy_ok_button_button_down():
|
||||
%EnergyTutorialAnimationPlayer.play_backwards("appear")
|
||||
tutorial_passed.emit()
|
||||
get_tree().create_timer(0.2).timeout.connect( # Put a delay to not interfere with the ok button click
|
||||
func():
|
||||
Pointer.action_disabled = false
|
||||
)
|
||||
|
||||
func _on_plant_info_ok_button_button_down():
|
||||
%PlantInfoTutorialAnimationPlayer.play_backwards("appear")
|
||||
tutorial_passed.emit()
|
||||
get_tree().create_timer(0.2).timeout.connect( # Put a delay to not interfere with the ok button click
|
||||
func():
|
||||
Pointer.action_disabled = false
|
||||
)
|
||||
|
||||
|
||||
func _on_mutation_ok_button_button_down():
|
||||
%MutationTutorialAnimationPlayer.play_backwards("appear")
|
||||
tutorial_passed.emit()
|
||||
get_tree().create_timer(0.2).timeout.connect( # Put a delay to not interfere with the ok button click
|
||||
func():
|
||||
Pointer.action_disabled = false
|
||||
)
|
||||
|
||||
|
||||
func _on_plant_point_ok_button_button_down():
|
||||
%PlantPointTutorialAnimationPlayer.play_backwards("appear")
|
||||
tutorial_passed.emit()
|
||||
get_tree().create_timer(0.2).timeout.connect( # Put a delay to not interfere with the ok button click
|
||||
func():
|
||||
Pointer.action_disabled = false
|
||||
)
|
||||
1
gui/game/help/scripts/help.gd.uid
Normal file
1
gui/game/help/scripts/help.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://drhkq61wr1k3h
|
||||
Reference in New Issue
Block a user