feat: encender la economica

This commit is contained in:
2024-01-27 00:37:50 +01:00
parent 8ea9b4602a
commit f0c61093e3
9 changed files with 97 additions and 27 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

View File

@@ -1,6 +1,13 @@
:action1
say player "Que cosa tan curiosa"
say player "Una caja de cartón vacía."
:action2
say player "No lo quiero coger"
say player "Cartón pa la saca!"
set_active turno_cocina_carton false
inventory_add turno_cocina_carton
:action3
say player "Es una caja cartón de vacía. ¿Qué haría al lado de la económica?"
:action3 turno_cocina_mechero
say player "El mechero no tiene gas, no puedo encender el cartón."

View File

@@ -1,36 +1,34 @@
[gd_scene load_steps=5 format=2]
[gd_scene load_steps=3 format=2]
[ext_resource path="res://gymkhana/addons/escoria-ui-return-monkey-island/esc_item_with_tooltip.gd" type="Script" id=1]
[ext_resource path="res://gymkhana/items/inventory/assets/turno_cocina_carton.png" type="Texture" id=2]
[ext_resource path="res://addons/escoria-core/game/core-scripts/esc_location.gd" type="Script" id=3]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 22.5, 12.5 )
[node name="turno_cocina_carton" type="Area2D"]
pause_mode = 1
rotation = 1.11177
script = ExtResource( 1 )
global_id = "turno_cocina_carton"
esc_script = "res://gymkhana/items/inventory/turno_cocina_carton.esc"
combine_when_selected_action_is_in = [ "action4" ]
inventory_texture = ExtResource( 2 )
dialog_color = Color( 1, 1, 1, 1 )
tooltips = {
"action1": "¿Que es esto?",
"action2": "Coger",
"action3": "Mirar dentro",
"action4": "Usar"
"action1": "Mirar",
"action2": "Coger",
"action3": "Mirar",
"action4": "Usar"
}
animations = null
action3_target_texts = {
"turno_cocina_mechero": "Encender el cartón"
}
target_when_selected_action_is_in = [ "action3" ]
[node name="Sprite" type="Sprite" parent="."]
position = Vector2( -2, 0 )
scale = Vector2( 0.5, 0.5 )
texture = ExtResource( 2 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( -1.5, -0.5 )
shape = SubResource( 1 )
[node name="ESCLocation" type="Position2D" parent="."]
position = Vector2( -51, 69 )
script = ExtResource( 3 )
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."]
polygon = PoolVector2Array( -13, -32, 1, -29, 1, -26, 24, -19, 17, 14, 7, 32, -29, 12, -15, -3, -15, -8, -13, -12 )

View File

@@ -0,0 +1,2 @@
:action3
say player "Con esto ya puedo encender lo que quiera."

View File

@@ -0,0 +1,27 @@
[gd_scene load_steps=3 format=2]
[ext_resource path="res://gymkhana/addons/escoria-ui-return-monkey-island/esc_item_with_tooltip.gd" type="Script" id=1]
[ext_resource path="res://gymkhana/items/inventory/assets/turno_cocina_carton_encendido.png" type="Texture" id=2]
[node name="turno_cocina_carton_encendido" type="Area2D"]
pause_mode = 1
rotation = 1.11177
script = ExtResource( 1 )
global_id = "turno_cocina_carton_encendido"
esc_script = "res://gymkhana/items/inventory/turno_cocina_carton_encendido.esc"
combine_when_selected_action_is_in = [ "action4" ]
inventory_texture = ExtResource( 2 )
dialog_color = Color( 1, 1, 1, 1 )
tooltips = {
"action3": "Mirar",
"action4": "Usar"
}
animations = null
[node name="Sprite" type="Sprite" parent="."]
position = Vector2( -2, 0 )
scale = Vector2( 0.5, 0.5 )
texture = ExtResource( 2 )
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."]
polygon = PoolVector2Array( -13, -32, 1, -29, 1, -26, 24, -19, 17, 14, 7, 32, -29, 12, -15, -3, -15, -8, -13, -12 )