Off screen marker

This commit is contained in:
2024-08-09 16:57:47 +08:00
parent 482bfb04a0
commit 34a1b6133f
7 changed files with 241 additions and 57 deletions

View File

@ -0,0 +1,15 @@
[gd_scene load_steps=3 format=3 uid="uid://bcnhxdbgcdsjb"]
[ext_resource type="Script" path="res://Scripts/Effects/OffScreenMarker.cs" id="1_8oti1"]
[ext_resource type="Texture2D" uid="uid://bn86o1gfcj502" path="res://Sprites/Alert.png" id="2_qatpw"]
[node name="OffScreenMarker" type="Node2D"]
script = ExtResource("1_8oti1")
[node name="Sprite2D" type="Sprite2D" parent="."]
[node name="Arrow" type="Sprite2D" parent="Sprite2D"]
position = Vector2(-20, 1.29804e-13)
rotation = 3.14159
scale = Vector2(0.04, 0.04)
texture = ExtResource("2_qatpw")

View File

@ -1,4 +1,4 @@
[gd_scene load_steps=12 format=3 uid="uid://b3gx0bl43lku3"]
[gd_scene load_steps=13 format=3 uid="uid://b3gx0bl43lku3"]
[ext_resource type="Script" path="res://Scripts/Player.cs" id="1_0btyt"]
[ext_resource type="Texture2D" uid="uid://c4als6t3k4myc" path="res://Sprites/Player.png" id="1_cqpqa"]
@ -7,6 +7,7 @@
[ext_resource type="Script" path="res://Scripts/Logic/PlayerInput.cs" id="3_tvoua"]
[ext_resource type="Theme" uid="uid://b4dcn26i0p6ym" path="res://AceTheme.tres" id="4_64t2j"]
[ext_resource type="Script" path="res://Scripts/Effects/CameraShake.cs" id="4_fwngj"]
[ext_resource type="PackedScene" uid="uid://bcnhxdbgcdsjb" path="res://Scenes/OffScreenMarker.tscn" id="7_juwvx"]
[sub_resource type="CircleShape2D" id="CircleShape2D_68yf8"]
radius = 25.6
@ -103,6 +104,9 @@ rotation_smoothing_enabled = true
script = ExtResource("4_fwngj")
Noise = SubResource("FastNoiseLite_cfnx7")
[node name="OffScreenMarker" parent="." node_paths=PackedStringArray("Tracking") instance=ExtResource("7_juwvx")]
Tracking = NodePath("..")
[node name="ReloadTimer" type="Timer" parent="."]
wait_time = 6.0
one_shot = true