Improved control tips
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_opqiy"]
|
||||
atlas = ExtResource("1_nvgb0")
|
||||
region = Rect2(144, 0, 16, 32)
|
||||
region = Rect2(144, 32, 16, 32)
|
||||
|
||||
[node name="Bookstand" type="Node2D"]
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_sqimt"]
|
||||
atlas = ExtResource("1_57t4w")
|
||||
region = Rect2(160, 0, 32, 32)
|
||||
region = Rect2(160, 64, 32, 32)
|
||||
|
||||
[node name="Cabinet" type="Node2D"]
|
||||
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://dwnalr4rphui0"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://ddm4gc2g3aj2i" path="res://images/level/objects.png" id="1_3rimp"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ajme5"]
|
||||
atlas = ExtResource("1_3rimp")
|
||||
region = Rect2(48, 128, 16, 16)
|
||||
|
||||
[node name="Candle" type="Node2D"]
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
texture = SubResource("AtlasTexture_ajme5")
|
||||
@@ -1,12 +0,0 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://dbj2f8kpwb8uh"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://ddm4gc2g3aj2i" path="res://images/level/objects.png" id="1_epbkb"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_w5fvp"]
|
||||
atlas = ExtResource("1_epbkb")
|
||||
region = Rect2(64, 128, 16, 16)
|
||||
|
||||
[node name="Candles" type="Node2D"]
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
texture = SubResource("AtlasTexture_w5fvp")
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ea7rc"]
|
||||
atlas = ExtResource("1_e7ewy")
|
||||
region = Rect2(112, 32, 16, 32)
|
||||
region = Rect2(160, 32, 16, 32)
|
||||
|
||||
[node name="ChairB" type="Node2D"]
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_1kw05"]
|
||||
atlas = ExtResource("1_rse2u")
|
||||
region = Rect2(112, 0, 16, 32)
|
||||
region = Rect2(160, 0, 16, 32)
|
||||
|
||||
[node name="ChairF" type="Node2D"]
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_cktuf"]
|
||||
atlas = ExtResource("1_xguce")
|
||||
region = Rect2(128, 0, 16, 32)
|
||||
region = Rect2(176, 0, 16, 32)
|
||||
|
||||
[node name="ChairL" type="Node2D"]
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_e7ewy"]
|
||||
atlas = ExtResource("1_e7ewy")
|
||||
region = Rect2(128, 32, 16, 32)
|
||||
region = Rect2(176, 32, 16, 32)
|
||||
|
||||
[node name="ChairR" type="Node2D"]
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_i1pbn"]
|
||||
atlas = ExtResource("1_x6vix")
|
||||
region = Rect2(64, 64, 16, 16)
|
||||
region = Rect2(128, 48, 16, 16)
|
||||
|
||||
[node name="FlaskL" type="Node2D"]
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_wg65s"]
|
||||
atlas = ExtResource("1_05y3q")
|
||||
region = Rect2(48, 64, 16, 16)
|
||||
region = Rect2(128, 32, 16, 16)
|
||||
|
||||
[node name="FlaskS" type="Node2D"]
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_nypty"]
|
||||
atlas = ExtResource("1_xsvl5")
|
||||
region = Rect2(144, 64, 32, 16)
|
||||
region = Rect2(80, 48, 32, 16)
|
||||
|
||||
[node name="MirrorL" type="Node2D"]
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_7fxax"]
|
||||
atlas = ExtResource("1_vvvt3")
|
||||
region = Rect2(144, 48, 16, 16)
|
||||
region = Rect2(112, 48, 16, 16)
|
||||
|
||||
[node name="MirrorS" type="Node2D"]
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_q70ul"]
|
||||
atlas = ExtResource("1_wkk58")
|
||||
region = Rect2(144, 32, 16, 16)
|
||||
region = Rect2(112, 32, 16, 16)
|
||||
|
||||
[node name="Plate" type="Node2D"]
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_hbatg"]
|
||||
atlas = ExtResource("1_xsq2h")
|
||||
region = Rect2(64, 80, 16, 16)
|
||||
region = Rect2(144, 0, 16, 16)
|
||||
|
||||
[node name="RedortEndL" type="Node2D"]
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_2d2yp"]
|
||||
atlas = ExtResource("1_ibloa")
|
||||
region = Rect2(48, 80, 16, 16)
|
||||
region = Rect2(112, 16, 16, 16)
|
||||
|
||||
[node name="RetortEndR" type="Node2D"]
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_8epgq"]
|
||||
atlas = ExtResource("1_u1d6f")
|
||||
region = Rect2(160, 176, 32, 16)
|
||||
region = Rect2(128, 16, 32, 16)
|
||||
|
||||
[node name="RetortL" type="Node2D"]
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_f54r7"]
|
||||
atlas = ExtResource("1_gohft")
|
||||
region = Rect2(160, 160, 32, 16)
|
||||
region = Rect2(112, 0, 32, 16)
|
||||
|
||||
[node name="RetortR" type="Node2D"]
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_l7gad"]
|
||||
atlas = ExtResource("1_ftoqg")
|
||||
region = Rect2(80, 160, 80, 32)
|
||||
region = Rect2(80, 64, 80, 32)
|
||||
|
||||
[node name="TableL" type="Node2D"]
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_runce"]
|
||||
atlas = ExtResource("1_qacj7")
|
||||
region = Rect2(112, 128, 48, 32)
|
||||
region = Rect2(32, 64, 48, 32)
|
||||
|
||||
[node name="TableM" type="Node2D"]
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_n2itf"]
|
||||
atlas = ExtResource("1_qacj7")
|
||||
region = Rect2(80, 128, 32, 32)
|
||||
region = Rect2(0, 64, 32, 32)
|
||||
|
||||
[node name="TableS" type="Node2D"]
|
||||
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
class_name AbstractActionTip
|
||||
extends Node2D
|
||||
|
||||
|
||||
@onready var sprite_keyboard : Sprite2D = $SpriteKbd
|
||||
@onready var sprite_gamepad : Sprite2D = $SpritePad
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
_updated_by_input_type(InputManager.get_type())
|
||||
InputManager.type_changed.connect(_updated_by_input_type)
|
||||
|
||||
|
||||
func _updated_by_input_type(type: InputManager.Type) -> void:
|
||||
match type:
|
||||
InputManager.Type.Keyboard:
|
||||
sprite_keyboard.show()
|
||||
sprite_gamepad.hide()
|
||||
InputManager.Type.Gamepad:
|
||||
sprite_keyboard.hide()
|
||||
sprite_gamepad.show()
|
||||
@@ -0,0 +1 @@
|
||||
uid://byjums4jdva4x
|
||||
@@ -0,0 +1,10 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://b24pn1q6u3u5v"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://byjums4jdva4x" path="res://game/objects/tutorial/abstract_action_tip.gd" id="1_erg4q"]
|
||||
|
||||
[node name="AbstractActionTip" type="Node2D"]
|
||||
script = ExtResource("1_erg4q")
|
||||
|
||||
[node name="SpriteKbd" type="Sprite2D" parent="."]
|
||||
|
||||
[node name="SpritePad" type="Sprite2D" parent="."]
|
||||
@@ -1,12 +0,0 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://b6qvcio6bnaoi"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://ddm4gc2g3aj2i" path="res://images/level/objects.png" id="1_r10g3"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_6qcrt"]
|
||||
atlas = ExtResource("1_r10g3")
|
||||
region = Rect2(176, 64, 16, 32)
|
||||
|
||||
[node name="ArrowDown" type="Node2D"]
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
texture = SubResource("AtlasTexture_6qcrt")
|
||||
@@ -1,12 +0,0 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://dindl67sbr8wc"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://ddm4gc2g3aj2i" path="res://images/level/objects.png" id="1_ct7ib"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_n5v8r"]
|
||||
atlas = ExtResource("1_ct7ib")
|
||||
region = Rect2(160, 128, 32, 16)
|
||||
|
||||
[node name="ArrowLeft" type="Node2D"]
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
texture = SubResource("AtlasTexture_n5v8r")
|
||||
@@ -1,12 +0,0 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://c653affkseeh3"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://ddm4gc2g3aj2i" path="res://images/level/objects.png" id="1_gvebv"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_r0fup"]
|
||||
atlas = ExtResource("1_gvebv")
|
||||
region = Rect2(160, 144, 32, 16)
|
||||
|
||||
[node name="ArrowRight" type="Node2D"]
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
texture = SubResource("AtlasTexture_r0fup")
|
||||
@@ -1,12 +0,0 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://crxhuuyyu7v24"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://ddm4gc2g3aj2i" path="res://images/level/objects.png" id="1_85c6u"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_0lvas"]
|
||||
atlas = ExtResource("1_85c6u")
|
||||
region = Rect2(176, 96, 16, 32)
|
||||
|
||||
[node name="ArrowUp" type="Node2D"]
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
texture = SubResource("AtlasTexture_0lvas")
|
||||
@@ -0,0 +1,20 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://g7wjnlsbden8"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://b24pn1q6u3u5v" path="res://game/objects/tutorial/abstract_action_tip.tscn" id="1_jsfj2"]
|
||||
[ext_resource type="Texture2D" uid="uid://ddm4gc2g3aj2i" path="res://images/level/objects.png" id="2_xbyc1"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_71ogr"]
|
||||
atlas = ExtResource("2_xbyc1")
|
||||
region = Rect2(128, 96, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_jsfj2"]
|
||||
atlas = ExtResource("2_xbyc1")
|
||||
region = Rect2(128, 128, 32, 32)
|
||||
|
||||
[node name="InteractionActionTip" instance=ExtResource("1_jsfj2")]
|
||||
|
||||
[node name="SpriteKbd" parent="." index="0"]
|
||||
texture = SubResource("AtlasTexture_71ogr")
|
||||
|
||||
[node name="SpritePad" parent="." index="1"]
|
||||
texture = SubResource("AtlasTexture_jsfj2")
|
||||
@@ -0,0 +1,20 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://cjduhfqgdmyhe"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://b24pn1q6u3u5v" path="res://game/objects/tutorial/abstract_action_tip.tscn" id="1_ffrc6"]
|
||||
[ext_resource type="Texture2D" uid="uid://ddm4gc2g3aj2i" path="res://images/level/objects.png" id="2_nd0mf"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_sre3d"]
|
||||
atlas = ExtResource("2_nd0mf")
|
||||
region = Rect2(32, 96, 48, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_nd0mf"]
|
||||
atlas = ExtResource("2_nd0mf")
|
||||
region = Rect2(32, 128, 48, 32)
|
||||
|
||||
[node name="JumpActionTip" instance=ExtResource("1_ffrc6")]
|
||||
|
||||
[node name="SpriteKbd" parent="." index="0"]
|
||||
texture = SubResource("AtlasTexture_sre3d")
|
||||
|
||||
[node name="SpritePad" parent="." index="1"]
|
||||
texture = SubResource("AtlasTexture_nd0mf")
|
||||
@@ -0,0 +1,20 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://be3mqeb784shj"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://b24pn1q6u3u5v" path="res://game/objects/tutorial/abstract_action_tip.tscn" id="1_6vlve"]
|
||||
[ext_resource type="Texture2D" uid="uid://ddm4gc2g3aj2i" path="res://images/level/objects.png" id="2_aui55"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_qoa1y"]
|
||||
atlas = ExtResource("2_aui55")
|
||||
region = Rect2(0, 96, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_aui55"]
|
||||
atlas = ExtResource("2_aui55")
|
||||
region = Rect2(0, 128, 32, 32)
|
||||
|
||||
[node name="MovementActionTip" instance=ExtResource("1_6vlve")]
|
||||
|
||||
[node name="SpriteKbd" parent="." index="0"]
|
||||
texture = SubResource("AtlasTexture_qoa1y")
|
||||
|
||||
[node name="SpritePad" parent="." index="1"]
|
||||
texture = SubResource("AtlasTexture_aui55")
|
||||
@@ -0,0 +1,20 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://b0pxe00dlyx7t"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://b24pn1q6u3u5v" path="res://game/objects/tutorial/abstract_action_tip.tscn" id="1_sol75"]
|
||||
[ext_resource type="Texture2D" uid="uid://ddm4gc2g3aj2i" path="res://images/level/objects.png" id="2_278pw"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_2aait"]
|
||||
atlas = ExtResource("2_278pw")
|
||||
region = Rect2(80, 96, 48, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_278pw"]
|
||||
atlas = ExtResource("2_278pw")
|
||||
region = Rect2(80, 128, 48, 32)
|
||||
|
||||
[node name="SwitchActionTip" instance=ExtResource("1_sol75")]
|
||||
|
||||
[node name="SpriteKbd" parent="." index="0"]
|
||||
texture = SubResource("AtlasTexture_2aait")
|
||||
|
||||
[node name="SpritePad" parent="." index="1"]
|
||||
texture = SubResource("AtlasTexture_278pw")
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_wbqlk"]
|
||||
atlas = ExtResource("1_610bq")
|
||||
region = Rect2(144, 80, 32, 48)
|
||||
region = Rect2(160, 96, 32, 48)
|
||||
|
||||
[node name="Wardrobe" type="Node2D"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user