Improved control tips
This commit is contained in:
+11
-19
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=28 format=4 uid="uid://dlpi1ptis3wna"]
|
||||
[gd_scene load_steps=26 format=4 uid="uid://dlpi1ptis3wna"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://mpsu4g2b5h3a" path="res://game/levels/abstract_level.tscn" id="1_15okj"]
|
||||
[ext_resource type="PackedScene" uid="uid://cojxqx5al7kyv" path="res://game/doors/locked_door.tscn" id="2_4ocoy"]
|
||||
@@ -7,10 +7,8 @@
|
||||
[ext_resource type="PackedScene" uid="uid://b7mhdrj3b6loq" path="res://game/doors/door.tscn" id="3_crrvt"]
|
||||
[ext_resource type="Texture2D" uid="uid://du56n63yrot7d" path="res://images/level/tree.png" id="3_o0jti"]
|
||||
[ext_resource type="Texture2D" uid="uid://d3346lrt1c1oh" path="res://images/level/outdoor.png" id="3_wi6ud"]
|
||||
[ext_resource type="PackedScene" uid="uid://cemhsfdru4pv6" path="res://game/objects/tutorial/movement_kbd.tscn" id="4_rifvl"]
|
||||
[ext_resource type="PackedScene" uid="uid://tipop68pyrf7" path="res://game/objects/tutorial/movement_pad.tscn" id="5_l6jt4"]
|
||||
[ext_resource type="PackedScene" uid="uid://pw8xqtpauy57" path="res://game/objects/tutorial/jump_kbd.tscn" id="6_g1txn"]
|
||||
[ext_resource type="PackedScene" uid="uid://3372ayctb2ed" path="res://game/objects/tutorial/jump_pad.tscn" id="7_yrqjd"]
|
||||
[ext_resource type="PackedScene" uid="uid://be3mqeb784shj" path="res://game/objects/tutorial/movement_action_tip.tscn" id="6_ia26y"]
|
||||
[ext_resource type="PackedScene" uid="uid://cjduhfqgdmyhe" path="res://game/objects/tutorial/jump_action_tip.tscn" id="7_rt0xo"]
|
||||
[ext_resource type="PackedScene" uid="uid://b3kyqvuxmfn8f" path="res://game/objects/fireplace.tscn" id="8_dea75"]
|
||||
[ext_resource type="PackedScene" uid="uid://bt4smb361amjj" path="res://game/objects/flask_s.tscn" id="8_rt0xo"]
|
||||
[ext_resource type="PackedScene" uid="uid://d330w1ygg6uxy" path="res://game/objects/painting_v_l.tscn" id="9_mmf06"]
|
||||
@@ -97,31 +95,25 @@ position = Vector2(1776, 280)
|
||||
[node name="Outdoor" type="Node2D" parent="Objects" index="0"]
|
||||
position = Vector2(71, 0)
|
||||
|
||||
[node name="MovementKbd" parent="Objects/Outdoor" index="0" instance=ExtResource("4_rifvl")]
|
||||
position = Vector2(-21, 2)
|
||||
|
||||
[node name="MovementPad" parent="Objects/Outdoor" index="1" instance=ExtResource("5_l6jt4")]
|
||||
position = Vector2(24, -4)
|
||||
[node name="MovementActionTip" parent="Objects/Outdoor" index="0" instance=ExtResource("6_ia26y")]
|
||||
position = Vector2(-11, 2)
|
||||
|
||||
[node name="Entrance" type="Node2D" parent="Objects" index="1"]
|
||||
position = Vector2(641, 0)
|
||||
|
||||
[node name="JumpKbd" parent="Objects/Entrance" index="0" instance=ExtResource("6_g1txn")]
|
||||
position = Vector2(173, -52)
|
||||
[node name="JumpActionTip" parent="Objects/Entrance" index="0" instance=ExtResource("7_rt0xo")]
|
||||
position = Vector2(131, -43)
|
||||
|
||||
[node name="JumpPad" parent="Objects/Entrance" index="1" instance=ExtResource("7_yrqjd")]
|
||||
position = Vector2(95, -28)
|
||||
|
||||
[node name="FlaskS" parent="Objects/Entrance" index="2" instance=ExtResource("8_rt0xo")]
|
||||
[node name="FlaskS" parent="Objects/Entrance" index="1" instance=ExtResource("8_rt0xo")]
|
||||
position = Vector2(-212, -15)
|
||||
|
||||
[node name="Fireplace" parent="Objects/Entrance" index="3" instance=ExtResource("8_dea75")]
|
||||
[node name="Fireplace" parent="Objects/Entrance" index="2" instance=ExtResource("8_dea75")]
|
||||
position = Vector2(-206, 0)
|
||||
|
||||
[node name="PaintingVL" parent="Objects/Entrance" index="4" instance=ExtResource("9_mmf06")]
|
||||
[node name="PaintingVL" parent="Objects/Entrance" index="3" instance=ExtResource("9_mmf06")]
|
||||
position = Vector2(-259, -48)
|
||||
|
||||
[node name="PaintingHS" parent="Objects/Entrance" index="5" instance=ExtResource("10_yrqjd")]
|
||||
[node name="PaintingHS" parent="Objects/Entrance" index="4" instance=ExtResource("10_yrqjd")]
|
||||
position = Vector2(-80, -38)
|
||||
|
||||
[node name="Room1" type="Node2D" parent="Objects" index="2"]
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
[gd_scene load_steps=20 format=4 uid="uid://cc06c06hlv7ix"]
|
||||
[gd_scene load_steps=19 format=4 uid="uid://cc06c06hlv7ix"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://mpsu4g2b5h3a" path="res://game/levels/abstract_level.tscn" id="1_t037v"]
|
||||
[ext_resource type="PackedScene" uid="uid://cojxqx5al7kyv" path="res://game/doors/locked_door.tscn" id="2_iakit"]
|
||||
[ext_resource type="PackedScene" uid="uid://deo60sij43ibm" path="res://game/objects/tutorial/switch_kbd.tscn" id="3_6jjde"]
|
||||
[ext_resource type="PackedScene" uid="uid://b7mhdrj3b6loq" path="res://game/doors/door.tscn" id="3_ylsm2"]
|
||||
[ext_resource type="PackedScene" uid="uid://f70xseggdimg" path="res://game/objects/tutorial/switch_pad.tscn" id="4_bxukv"]
|
||||
[ext_resource type="PackedScene" uid="uid://b0pxe00dlyx7t" path="res://game/objects/tutorial/switch_action_tip.tscn" id="4_xx77b"]
|
||||
[ext_resource type="PackedScene" uid="uid://xny1x7me75gc" path="res://game/objects/mirror_l.tscn" id="5_bxukv"]
|
||||
[ext_resource type="PackedScene" uid="uid://dopjsft0y8mw5" path="res://game/objects/cabinet.tscn" id="5_uivyf"]
|
||||
[ext_resource type="PackedScene" uid="uid://b8pvlnpdnfmd0" path="res://game/objects/chair_f.tscn" id="6_go8g1"]
|
||||
@@ -34,16 +33,13 @@ position = Vector2(963, 440)
|
||||
[node name="Room1" type="Node2D" parent="Objects" index="0"]
|
||||
position = Vector2(45, 272)
|
||||
|
||||
[node name="SwitchKbd" parent="Objects/Room1" index="0" instance=ExtResource("3_6jjde")]
|
||||
position = Vector2(59, -11)
|
||||
[node name="SwitchActionTip" parent="Objects/Room1" index="0" instance=ExtResource("4_xx77b")]
|
||||
position = Vector2(57, -11)
|
||||
|
||||
[node name="SwitchPad" parent="Objects/Room1" index="1" instance=ExtResource("4_bxukv")]
|
||||
position = Vector2(-36, -3)
|
||||
|
||||
[node name="MirrorL" parent="Objects/Room1" index="2" instance=ExtResource("5_bxukv")]
|
||||
[node name="MirrorL" parent="Objects/Room1" index="1" instance=ExtResource("5_bxukv")]
|
||||
position = Vector2(0, 20)
|
||||
|
||||
[node name="Cabinet" parent="Objects/Room1" index="3" instance=ExtResource("5_uivyf")]
|
||||
[node name="Cabinet" parent="Objects/Room1" index="2" instance=ExtResource("5_uivyf")]
|
||||
position = Vector2(0, 37)
|
||||
|
||||
[node name="Room2" type="Node2D" parent="Objects" index="1"]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=24 format=4 uid="uid://cmp1cog2cbfh5"]
|
||||
[gd_scene load_steps=23 format=4 uid="uid://cmp1cog2cbfh5"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://mpsu4g2b5h3a" path="res://game/levels/abstract_level.tscn" id="1_v1h2f"]
|
||||
[ext_resource type="PackedScene" uid="uid://b7mhdrj3b6loq" path="res://game/doors/door.tscn" id="2_h35x0"]
|
||||
@@ -14,7 +14,6 @@
|
||||
[ext_resource type="PackedScene" uid="uid://d3m8kf7lqmyb8" path="res://game/objects/flask_l.tscn" id="8_pp088"]
|
||||
[ext_resource type="PackedScene" uid="uid://bt4smb361amjj" path="res://game/objects/flask_s.tscn" id="9_gtr04"]
|
||||
[ext_resource type="PackedScene" uid="uid://c0bk5sk661hi1" path="res://game/objects/painting_h_s.tscn" id="10_c6guj"]
|
||||
[ext_resource type="PackedScene" uid="uid://dwnalr4rphui0" path="res://game/objects/candle.tscn" id="11_gtkf3"]
|
||||
[ext_resource type="PackedScene" uid="uid://b3kyqvuxmfn8f" path="res://game/objects/fireplace.tscn" id="12_s735u"]
|
||||
[ext_resource type="PackedScene" uid="uid://dopjsft0y8mw5" path="res://game/objects/cabinet.tscn" id="13_rnrg1"]
|
||||
[ext_resource type="PackedScene" uid="uid://bo7756lp68bl1" path="res://game/objects/painting_v_s.tscn" id="14_4ncxq"]
|
||||
@@ -77,16 +76,10 @@ position = Vector2(32, -3)
|
||||
[node name="Room2" type="Node2D" parent="Objects" index="1"]
|
||||
position = Vector2(257, 256)
|
||||
|
||||
[node name="Candle1" parent="Objects/Room2" index="0" instance=ExtResource("11_gtkf3")]
|
||||
position = Vector2(-35, 23)
|
||||
|
||||
[node name="Candle2" parent="Objects/Room2" index="1" instance=ExtResource("11_gtkf3")]
|
||||
position = Vector2(-14, 21)
|
||||
|
||||
[node name="FlaskS" parent="Objects/Room2" index="2" instance=ExtResource("9_gtr04")]
|
||||
[node name="FlaskS" parent="Objects/Room2" index="0" instance=ExtResource("9_gtr04")]
|
||||
position = Vector2(-26, 20)
|
||||
|
||||
[node name="Fireplace" parent="Objects/Room2" index="3" instance=ExtResource("12_s735u")]
|
||||
[node name="Fireplace" parent="Objects/Room2" index="1" instance=ExtResource("12_s735u")]
|
||||
position = Vector2(-24, 32)
|
||||
|
||||
[node name="Room3" type="Node2D" parent="Objects" index="2"]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=21 format=4 uid="uid://bmn74wc2vophn"]
|
||||
[gd_scene load_steps=20 format=4 uid="uid://bmn74wc2vophn"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://mpsu4g2b5h3a" path="res://game/levels/abstract_level.tscn" id="1_15okj"]
|
||||
[ext_resource type="PackedScene" uid="uid://b3kyqvuxmfn8f" path="res://game/objects/fireplace.tscn" id="3_tuvkr"]
|
||||
@@ -16,7 +16,6 @@
|
||||
[ext_resource type="PackedScene" uid="uid://dqgmfpv2mhdpn" path="res://game/pickups/triangle_key_pickup.tscn" id="10_dea75"]
|
||||
[ext_resource type="PackedScene" uid="uid://b7mhdrj3b6loq" path="res://game/doors/door.tscn" id="11_g1txn"]
|
||||
[ext_resource type="PackedScene" uid="uid://dx1yasi8wlaye" path="res://game/objects/bookstand.tscn" id="13_g3b4m"]
|
||||
[ext_resource type="PackedScene" uid="uid://b6qvcio6bnaoi" path="res://game/objects/tutorial/arrow_down.tscn" id="14_r01v2"]
|
||||
[ext_resource type="PackedScene" uid="uid://cb0w6mt8g4mer" path="res://game/characters/gray_enemy.tscn" id="18_blgb8"]
|
||||
[ext_resource type="PackedScene" uid="uid://cutjutvd8dqqc" path="res://game/characters/black_enemy.tscn" id="19_ohfy3"]
|
||||
[ext_resource type="PackedScene" uid="uid://bv2gahb4wxgb1" path="res://game/characters/white_enemy.tscn" id="20_rt0xo"]
|
||||
@@ -62,9 +61,6 @@ position = Vector2(692, -72)
|
||||
[node name="Bookstand" parent="Objects" index="4" instance=ExtResource("13_g3b4m")]
|
||||
position = Vector2(1216, 102)
|
||||
|
||||
[node name="ArrowDown" parent="Objects" index="5" instance=ExtResource("14_r01v2")]
|
||||
position = Vector2(1376, 79)
|
||||
|
||||
[node name="BookPickup" parent="Pickups" index="0" instance=ExtResource("7_fq0h3")]
|
||||
position = Vector2(1216, 86)
|
||||
|
||||
|
||||
@@ -0,0 +1,62 @@
|
||||
class_name CInputManager
|
||||
extends Node2D
|
||||
|
||||
|
||||
signal type_changed(type: Type)
|
||||
|
||||
|
||||
enum Type {
|
||||
Keyboard,
|
||||
Gamepad,
|
||||
}
|
||||
|
||||
|
||||
@export_range(0.0, 1.0, 0.01) var dead_zone := 0.2
|
||||
|
||||
|
||||
@onready var _type : Type:
|
||||
set(value):
|
||||
_type = value
|
||||
type_changed.emit(_type)
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
if Input.get_connected_joypads().size() > 0:
|
||||
_type = Type.Gamepad
|
||||
else:
|
||||
_type = Type.Keyboard
|
||||
|
||||
|
||||
func _input(event: InputEvent) -> void:
|
||||
if _is_keyboard_event(event):
|
||||
_type = Type.Keyboard
|
||||
elif _is_gamepad_event(event):
|
||||
_type = Type.Gamepad
|
||||
|
||||
|
||||
func _is_keyboard_event(event: InputEvent) -> bool:
|
||||
if event is InputEventKey:
|
||||
return true
|
||||
if event is InputEventMouse:
|
||||
return true
|
||||
return false
|
||||
|
||||
|
||||
func _is_gamepad_event(event: InputEvent) -> bool:
|
||||
if event is InputEventJoypadButton:
|
||||
return true
|
||||
if event is InputEventJoypadMotion and not _is_deadzone(event):
|
||||
return true
|
||||
return false
|
||||
|
||||
|
||||
func _is_deadzone(event: InputEventJoypadMotion) -> bool:
|
||||
if event.axis_value < -dead_zone:
|
||||
return false
|
||||
if event.axis_value > dead_zone:
|
||||
return false
|
||||
return true
|
||||
|
||||
|
||||
func get_type() -> Type:
|
||||
return _type
|
||||
@@ -0,0 +1 @@
|
||||
uid://cm5bo10nhhv22
|
||||
@@ -0,0 +1,6 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://dns14jkftmq7n"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cm5bo10nhhv22" path="res://game/managers/input_manager.gd" id="1_tiryt"]
|
||||
|
||||
[node name="InputManager" type="Node2D"]
|
||||
script = ExtResource("1_tiryt")
|
||||
@@ -48,7 +48,7 @@ text = "Quit"
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 1
|
||||
theme = ExtResource("3_i4f54")
|
||||
text = "v 1.0.1
|
||||
text = "v 1.0.2
|
||||
(c) Ruslan Ignatov 2026
|
||||
Powered by Godot Engine"
|
||||
horizontal_alignment = 2
|
||||
|
||||
@@ -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