-
Notifications
You must be signed in to change notification settings - Fork 482
Add "La Odisea del Tiempo" StoryQuest #2472
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Salonso928
wants to merge
70
commits into
endlessm:main
Choose a base branch
from
GameLab6-UTP-Grupo5-Equipo1:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
70 commits
Select commit
Hold shift + click to select a range
8be1990
Duplicate and rename template and all files para equipo_1
edwardvilcamonje-max 7f13d5e
Merge pull request #43 from GameLab6-UTP-Grupo5-Equipo1/copy-rename-t…
edwardvilcamonje-max 1aa830a
Avance de la introducción del juego
DiegoVilchezS 0344131
Actualización introducción
DiegoVilchezS 50c590d
Implementación de personaje intro
DiegoVilchezS c7a2ec9
Revert "Act
DiegoVilchezS 65af6ad
Merge pull request #44 from GameLab6-UTP-Grupo5-Equipo1/rama_diego
DiegoVilchezS 903f801
Agregando la mecanica del viento y los items recolectables
Salonso928 c07f4c9
Creacion de mapa nivel 1
DiegoVilchezS 271cc6c
Merge branch 'rama_alonso' into rama_diego2
Salonso928 6cb3d3c
Merge de las mecanicas y el mapa
Salonso928 230c41a
agregando dialogos, agregando npc para finalizar el nivel, resolviend…
Salonso928 be804b4
Merge pull request #46 from GameLab6-UTP-Grupo5-Equipo1/rama_alonso
Salonso928 281489b
Introduccion, juego1 y outro
DiegoVilchezS 0c45e82
Actualizacion intro,juego1,final y outro
DiegoVilchezS 3bdd641
agregando mecanicas del minijuego 2
Salonso928 fdc4c88
Terminando todas las mecanicas del minijuego 2
Salonso928 99619da
Merge branch 'rama_diego4' into rama_alonso
Salonso928 6b7be81
Merge pull request #48 from GameLab6-UTP-Grupo5-Equipo1/rama_alonso
Salonso928 d096a7c
terminando juego 1, preparando mecanicas para finalizacion de juego 2
Salonso928 0aa7232
Merge pull request #49 from GameLab6-UTP-Grupo5-Equipo1/rama_alonso
Salonso928 d3353a6
agregando assets, sonido batalla final y solucionando error mapa 3
DiegoVilchezS e68d336
Merge pull request #50 from GameLab6-UTP-Grupo5-Equipo1/rama_diego6
DiegoVilchezS b129364
Puliendo minijuego 1 y terminandolo
Salonso928 2d18b03
Merge pull request #51 from GameLab6-UTP-Grupo5-Equipo1/rama_alonso3
Salonso928 5ecd647
Remove _dialogo_final function
Salonso928 e580531
Merge pull request #52 from GameLab6-UTP-Grupo5-Equipo1/TheWeebCrafte…
Salonso928 9d5f60f
empezando mecanicas del boss final
Salonso928 12420c5
agregando mecanica de disparo de barrido
Salonso928 23a58fd
agregando mecanica de varios ataques
Salonso928 6e9debc
añadiendo efecto parar el tiempo minijuego 3
Salonso928 8815d90
finalizando mecanicas del boss, añadiendo timer a la accion repeler
Salonso928 e3eb06d
Merge pull request #53 from GameLab6-UTP-Grupo5-Equipo1/boss_final
Salonso928 fb9fa28
Agrega nuevas texturas de piso y minijuegos al equipo 1
kath144 2dc8155
Merge pull request #54 from GameLab6-UTP-Grupo5-Equipo1/kath-cambios
kath144 aa3645d
terminando mecanicas del boss final
Salonso928 0d7e47b
minijuego 3
kath144 ea48d26
Merge pull request #55 from GameLab6-UTP-Grupo5-Equipo1/kath-cambios
kath144 c7e7631
conectando minijuegos y poniendo la posicion correcta
Salonso928 21fbc60
Merge branch 'main' of https://github.com/GameLab6-UTP-Grupo5-Equipo1…
Salonso928 843e1b7
merge branch 'rama_alonso5'
Salonso928 9cfccd4
Terminando mecanicas y conectando juegos
Salonso928 8464eea
Merge pull request #56 from GameLab6-UTP-Grupo5-Equipo1/final_juego1
Salonso928 c630761
mejorando jefe final
Salonso928 e87d6cc
terminando boss final, con nuevas mecanicas
Salonso928 d4d7159
Merge pull request #57 from GameLab6-UTP-Grupo5-Equipo1/final_juego1
Salonso928 f2797dc
agregando sonidos y efectos a la batalla final, arreglando bug de sin…
Salonso928 882b4b4
Merge pull request #58 from GameLab6-UTP-Grupo5-Equipo1/final_juego1
Salonso928 29255f5
intro and outro
kath144 272fa97
Merge pull request #59 from GameLab6-UTP-Grupo5-Equipo1/kath-cambios
kath144 96330ca
arreglando bugs, añadiendo sprites y efectos de sonido
Salonso928 2be4f73
Merge pull request #60 from GameLab6-UTP-Grupo5-Equipo1/final_juego3
Salonso928 c0fd87f
cambiando volumen de musica, cambiando color barras, añadiendo descri…
Salonso928 d17c9b0
Merge pull request #61 from GameLab6-UTP-Grupo5-Equipo1/final_juego4
Salonso928 b2ba91b
moviendo archivos a carpeta equipo_1
Salonso928 76900b2
Agregando canciones intro/outro, ajustando volumen, revirtiendo cambi…
Salonso928 1c0f593
añadiendo dialogos al jefe final y sonido de daño
Salonso928 2a42eb9
Merge pull request #62 from GameLab6-UTP-Grupo5-Equipo1/final_juego5
Salonso928 6f18019
Delete scenes/quests/story_quests/equipo_1/musica_juego/parar_tiempo.mp3
karenzc2323-sudo b5e4e32
Merge pull request #63 from GameLab6-UTP-Grupo5-Equipo1/karenzc2323-s…
Salonso928 b25805e
Cambiando batalla final, se agrego tiles de lava, se cambio diseño de…
Salonso928 a2266bd
solucionando errores con los tiles de lava
Salonso928 983bec2
Agregando y mejorando dialogos minijuego 1 y 2, agregando animacion f…
Salonso928 19a0217
Merge pull request #64 from GameLab6-UTP-Grupo5-Equipo1/alonso-ajustes-1
Salonso928 6cff080
Agregando licencias a scripts y borrando scripts si usar
Salonso928 5b0c378
Renombrando archivos, eliminando assests no utilizados, moviendo arch…
Salonso928 5d24b63
Script delete blocks cambiado, ahora tambien coloca muros, pequeño re…
Salonso928 5e1aff1
Merge pull request #65 from GameLab6-UTP-Grupo5-Equipo1/alonso-ajustes-2
Salonso928 847f2a1
Arreglando posicion del player nivel 1
Salonso928 f33fd88
Merge pull request #66 from GameLab6-UTP-Grupo5-Equipo1/alonso-ajustes-3
Salonso928 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
324 changes: 324 additions & 0 deletions
324
scenes/quests/story_quests/la_odisea_del_tiempo/0_intro/equipo_1_intro.tscn
Large diffs are not rendered by default.
Oops, something went wrong.
27 changes: 27 additions & 0 deletions
27
...quests/story_quests/la_odisea_del_tiempo/0_intro/intro_components/equipo_1_intro.dialogue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| # SPDX-FileCopyrightText: The Threadbare Authors | ||
| # SPDX-License-Identifier: MPL-2.0 | ||
|
|
||
| ~ start | ||
| do animation_player.play(&"walk_on") | ||
| do animation_player.animation_finished | ||
|
|
||
| Balder: Mi reino.... | ||
| Balder: Está....destruido.... | ||
| Balder: Todo comenzó cuando el tiempo se rompió. | ||
| Balder: No el tiempo del mundo... sino el mío. | ||
|
|
||
| Narrador: Acompaña a Balder en esta historia.... | ||
| Narrador: Donde la sanación y la búsqueda de redención... | ||
| Narrador: Es la única alternativa. | ||
|
|
||
|
|
||
| do animation_player.play(&"walk_off") | ||
| do animation_player.animation_finished | ||
|
|
||
| Narrador: Antes de iniciar este camino... | ||
| Narrador: Recuerda algo noble caballero... | ||
| Narrador: El cambio siempre está dentro de ti... | ||
| do animation_player.play(&"walk_off_2") | ||
| do animation_player.animation_finished | ||
|
|
||
| => END |
16 changes: 16 additions & 0 deletions
16
...story_quests/la_odisea_del_tiempo/0_intro/intro_components/equipo_1_intro.dialogue.import
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| [remap] | ||
|
|
||
| importer="dialogue_manager" | ||
| importer_version=15 | ||
| type="Resource" | ||
| uid="uid://cjxjsprxapwhi" | ||
| path="res://.godot/imported/equipo_1_intro.dialogue-8e902d1272000de1fa8f18e148002207.tres" | ||
|
|
||
| [deps] | ||
|
|
||
| source_file="res://scenes/quests/story_quests/la_odisea_del_tiempo/0_intro/intro_components/equipo_1_intro.dialogue" | ||
| dest_files=["res://.godot/imported/equipo_1_intro.dialogue-8e902d1272000de1fa8f18e148002207.tres"] | ||
|
|
||
| [params] | ||
|
|
||
| defaults=true |
37 changes: 37 additions & 0 deletions
37
scenes/quests/story_quests/la_odisea_del_tiempo/1_stealth/activar_enemigos.gd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| # SPDX-FileCopyrightText: The Threadbare Authors | ||
| # SPDX-License-Identifier: MPL-2.0 | ||
| extends Node | ||
| var enemigos:Array =[] | ||
| @onready var vidas = 3 | ||
| @onready var can_take_damage = true; | ||
| @onready var viento=%VientoScript | ||
| signal derrota; | ||
|
|
||
| func _ready() -> void: | ||
| enemigos = get_children() | ||
|
|
||
|
|
||
| func _activar_enemigos()->void: | ||
| viento._set_estado_viento(500,3)##fuerza de 500 hacia atras y se activa cada 3 segundos | ||
|
|
||
| for e in enemigos: | ||
| e.visible= true | ||
| e.start(); | ||
|
|
||
| func _desactivar_enemigos()->void: | ||
| can_take_damage = false | ||
| for e in enemigos: | ||
| e.remove(); | ||
|
|
||
| func _reducir_vida_jugador(body:Node2D)->void: | ||
| if(!can_take_damage): | ||
| return | ||
| body = body as Projectile | ||
| if not body: | ||
| return | ||
| vidas=vidas-1; | ||
| if(vidas <1): | ||
| derrota.emit() | ||
| for e in enemigos: | ||
| e.visible= false | ||
|
|
||
1 change: 1 addition & 0 deletions
1
scenes/quests/story_quests/la_odisea_del_tiempo/1_stealth/activar_enemigos.gd.uid
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| uid://c3gulnwmq53s1 |
22 changes: 22 additions & 0 deletions
22
scenes/quests/story_quests/la_odisea_del_tiempo/1_stealth/collectables.gd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| # SPDX-FileCopyrightText: The Threadbare Authors | ||
| # SPDX-License-Identifier: MPL-2.0 | ||
| extends Node | ||
|
|
||
| var items_count: int | ||
| var items_collected: int | ||
| signal open_path | ||
| signal dialogue_start | ||
| signal dialogue_finished | ||
| func _ready(): | ||
| items_count = get_child_count(false) | ||
| items_collected = 0; | ||
| for item in get_children(false): | ||
| item.collected.connect(item_collected) | ||
|
|
||
| func item_collected(item:CollectibleItem)->void: | ||
| dialogue_start.emit() | ||
| items_collected+=1; | ||
| if items_collected==items_count: | ||
| open_path.emit(); | ||
| await DialogueManager.dialogue_ended | ||
| dialogue_finished.emit() |
1 change: 1 addition & 0 deletions
1
scenes/quests/story_quests/la_odisea_del_tiempo/1_stealth/collectables.gd.uid
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| uid://b6j30swrf7u7x |
22 changes: 22 additions & 0 deletions
22
scenes/quests/story_quests/la_odisea_del_tiempo/1_stealth/delete_blocks.gd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| # SPDX-FileCopyrightText: The Threadbare Authors | ||
| # SPDX-License-Identifier: MPL-2.0 | ||
| extends Node2D | ||
| @onready var stones = $Stone; | ||
|
|
||
| var bloques_a_borrar=[ | ||
| Vector2i(44,28), | ||
| Vector2i(44,29), | ||
| Vector2i(44,30), | ||
| ] | ||
| var bloques_a_colocar=[ | ||
| Vector2i(51,28), | ||
| Vector2i(51,29), | ||
| Vector2i(51,30), | ||
| ] | ||
| func delete_stones()->void: | ||
| for b in bloques_a_borrar: | ||
| stones.set_cell(b,-1); | ||
| func put_stones()->void: | ||
| for b in bloques_a_colocar: | ||
| stones.set_cell(b,0,Vector2i(1,1),0) | ||
|
|
1 change: 1 addition & 0 deletions
1
scenes/quests/story_quests/la_odisea_del_tiempo/1_stealth/delete_blocks.gd.uid
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| uid://d0r83xn1mxjck |
462 changes: 462 additions & 0 deletions
462
scenes/quests/story_quests/la_odisea_del_tiempo/1_stealth/equipo_1_stealth.tscn
Large diffs are not rendered by default.
Oops, something went wrong.
15 changes: 15 additions & 0 deletions
15
scenes/quests/story_quests/la_odisea_del_tiempo/1_stealth/movilidad.gd
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Este script no hace nada. Borrarlo. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| # SPDX-FileCopyrightText: The Threadbare Authors | ||
| # SPDX-License-Identifier: MPL-2.0 | ||
| extends Node2D | ||
|
|
||
|
|
||
| # Called when the node enters the scene tree for the first time. | ||
| func _ready() -> void: | ||
| pass # Replace with function body. | ||
|
|
||
|
|
||
| # Called every frame. 'delta' is the elapsed time since the previous frame. | ||
| #delta -> tiempo que se ejecuta (0.014seg) | ||
| #fun _process -> la más importante | ||
| func _process(delta: float) -> void: | ||
| pass |
1 change: 1 addition & 0 deletions
1
scenes/quests/story_quests/la_odisea_del_tiempo/1_stealth/movilidad.gd.uid
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| uid://dtm4qmrod7h3g |
31 changes: 31 additions & 0 deletions
31
scenes/quests/story_quests/la_odisea_del_tiempo/1_stealth/pre_final_dialogue.gd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| # SPDX-FileCopyrightText: The Threadbare Authors | ||
| # SPDX-License-Identifier: MPL-2.0 | ||
| extends Area2D | ||
| var se_uso = false; | ||
| @export_category("Dialogue") | ||
| @export var dialogue_title = "start"; | ||
| @export var pre_final_dialogue: DialogueResource: | ||
| set(new_value): | ||
| pre_final_dialogue = new_value | ||
| notify_property_list_changed() | ||
| signal dialogue_start; | ||
| signal dialogue_finished; | ||
|
|
||
| func _ready() -> void: | ||
| body_entered.connect(_on_body_entered); | ||
|
|
||
| func _on_body_entered(body:Node2D) -> void: | ||
| if se_uso: | ||
| return | ||
|
|
||
| if body is Player: | ||
| dialogue_start.emit(); | ||
| se_uso = true; | ||
| var player: Player = body; | ||
| player.take_control(self) | ||
| if(pre_final_dialogue): | ||
| DialogueManager.show_dialogue_balloon(pre_final_dialogue, dialogue_title, [self, player]) | ||
| await DialogueManager.dialogue_ended | ||
| player.return_control(self) | ||
| dialogue_finished.emit(); | ||
| queue_free(); |
1 change: 1 addition & 0 deletions
1
scenes/quests/story_quests/la_odisea_del_tiempo/1_stealth/pre_final_dialogue.gd.uid
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| uid://cu0ee4qkfakqe |
54 changes: 54 additions & 0 deletions
54
scenes/quests/story_quests/la_odisea_del_tiempo/1_stealth/signal_script.gd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| # SPDX-FileCopyrightText: The Threadbare Authors | ||
| # SPDX-License-Identifier: MPL-2.0 | ||
| extends Node2D | ||
| @onready var mapa = $TileMapLayers; | ||
| @onready var items = $Collectables; | ||
|
|
||
| @onready var final_area = $%FinalArea | ||
|
|
||
| @onready var viento_script =$%VientoScript | ||
| @onready var mensaje_pre_final = $%Mensaje | ||
| @export_file("*.tscn") var next_scene: String | ||
|
|
||
| @export_category("Dialogue") | ||
| @export var dialogue_title = "start"; | ||
|
|
||
| @export var final_dialogue: DialogueResource: | ||
| set(new_value): | ||
| final_dialogue = new_value | ||
| notify_property_list_changed() | ||
|
|
||
|
|
||
| func _ready() -> void: | ||
| ##conectamos la señal para borrar las piedras | ||
| items.open_path.connect(mapa.delete_stones) | ||
|
|
||
| ##conectamos la señal del area interactuable con nuestra funcion | ||
| ##para mostrar el dialogo final | ||
| final_area.interaction_started.connect(_on_player_interaction); | ||
|
|
||
| ##conectamos la señal de inicio y fin de mensaje e items | ||
| ##para que la mecanica no se active durante un dialogo | ||
| items.dialogue_start.connect(_disable_wind) | ||
| items.dialogue_finished.connect(_enable_wind) | ||
|
|
||
| mensaje_pre_final.dialogue_start.connect(_disable_wind) | ||
| mensaje_pre_final.dialogue_finished.connect(_enable_wind) | ||
|
|
||
| func _on_player_interaction(player: Player, from_right: bool)->void: | ||
| if final_dialogue: | ||
| DialogueManager.show_dialogue_balloon(final_dialogue, dialogue_title, [self, player]) | ||
| await DialogueManager.dialogue_ended | ||
| final_area.end_interaction() | ||
| queue_free() | ||
|
|
||
| if next_scene: | ||
| GameState.set_challenge_start_scene(next_scene) | ||
| SceneSwitcher.change_to_file_with_transition(next_scene) | ||
|
|
||
| func _disable_wind()->void: | ||
| viento_script.empezar = false; | ||
| viento_script._reset_all_attributes(); | ||
| func _enable_wind()->void: | ||
| viento_script.empezar = true; | ||
|
|
1 change: 1 addition & 0 deletions
1
scenes/quests/story_quests/la_odisea_del_tiempo/1_stealth/signal_script.gd.uid
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| uid://owqe8byf5r8 |
6 changes: 6 additions & 0 deletions
6
...s/story_quests/la_odisea_del_tiempo/1_stealth/stealth_components/carta_collected.dialogue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| # SPDX-FileCopyrightText: The Threadbare Authors | ||
| # SPDX-License-Identifier: MPL-2.0 | ||
| ~ start | ||
| Niño: ¡Palabras vacías! | ||
| Niño: ¡Las promesas también se cortan como el cristal! | ||
| => END |
16 changes: 16 additions & 0 deletions
16
..._quests/la_odisea_del_tiempo/1_stealth/stealth_components/carta_collected.dialogue.import
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| [remap] | ||
|
|
||
| importer="dialogue_manager" | ||
| importer_version=15 | ||
| type="Resource" | ||
| uid="uid://3mq3rqvh1ov6" | ||
| path="res://.godot/imported/carta_collected.dialogue-bae09ff0ebd33bd0cff678f9f397ab93.tres" | ||
|
|
||
| [deps] | ||
|
|
||
| source_file="res://scenes/quests/story_quests/la_odisea_del_tiempo/1_stealth/stealth_components/carta_collected.dialogue" | ||
| dest_files=["res://.godot/imported/carta_collected.dialogue-bae09ff0ebd33bd0cff678f9f397ab93.tres"] | ||
|
|
||
| [params] | ||
|
|
||
| defaults=true |
29 changes: 29 additions & 0 deletions
29
...story_quests/la_odisea_del_tiempo/1_stealth/stealth_components/collectible_item_custom.gd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| # SPDX-FileCopyrightText: The Threadbare Authors | ||
| # SPDX-License-Identifier: MPL-2.0 | ||
| extends CollectibleItem | ||
|
|
||
| signal collected; | ||
|
|
||
| @export var es_textura_custom:bool = false | ||
| @export var textura_custom:Texture2D | ||
| func _ready() -> void: | ||
| super._ready(); | ||
|
|
||
| func _on_interacted(player: Player, _from_right: bool) -> void: | ||
| collected.emit(self); | ||
| super(player,_from_right) | ||
|
|
||
|
|
||
| func _set_item(new_value: InventoryItem) -> void: | ||
| item = new_value | ||
|
|
||
| if sprite_2d: | ||
| if not es_textura_custom: | ||
| sprite_2d.texture = item.get_world_texture() if item else null | ||
| else: | ||
| sprite_2d.texture = textura_custom | ||
|
|
||
| if interact_area: | ||
| interact_area.action = "Collect " + item.type_name() if item else "Collect" | ||
|
|
||
| update_configuration_warnings() |
1 change: 1 addition & 0 deletions
1
...y_quests/la_odisea_del_tiempo/1_stealth/stealth_components/collectible_item_custom.gd.uid
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| uid://bo0ffu4a87byu |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
El operador
!no está recomendado, y los paréntesis no son necesarios: