Skip to content

Commit 519f35b

Browse files
committed
Void spreading enemy: Add prop that takes time to ingest
Add a pile of books that has a float metadata "ingest_time" and is set to 2.0. This will be used to stop the Void spreading enemy for that amount of seconds. For testing, this prop is also hookable and will move towards the player, colliding with it. So the player could change its place or bring it from other "islands" with the grappling hook.
1 parent 0c497c0 commit 519f35b

File tree

1 file changed

+48
-0
lines changed
  • scenes/quests/lore_quests/quest_002/3_void_grappling/components

1 file changed

+48
-0
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
[gd_scene load_steps=6 format=3 uid="uid://ktjtnp64e63v"]
2+
3+
[ext_resource type="Texture2D" uid="uid://cyvi71ryavsld" path="res://scenes/game_elements/props/decoration/books/components/Books_2.png" id="1_lljyg"]
4+
[ext_resource type="Texture2D" uid="uid://b65dg7i548oip" path="res://scenes/game_elements/props/decoration/books/components/Books_1.png" id="2_ej8sk"]
5+
[ext_resource type="Script" uid="uid://dabvr3pqmyya4" path="res://scenes/game_elements/props/hookable_area/components/hookable_area.gd" id="3_ej8sk"]
6+
7+
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_grfk2"]
8+
radius = 12.0
9+
height = 62.0
10+
11+
[sub_resource type="RectangleShape2D" id="RectangleShape2D_5vg6g"]
12+
size = Vector2(72, 124)
13+
14+
[node name="BooksPile" type="CharacterBody2D"]
15+
metadata/ingest_time = 2.0
16+
17+
[node name="Books2" type="Sprite2D" parent="."]
18+
position = Vector2(2, -15)
19+
texture = ExtResource("1_lljyg")
20+
21+
[node name="Books1" type="Sprite2D" parent="."]
22+
position = Vector2(-2, -47)
23+
texture = ExtResource("2_ej8sk")
24+
25+
[node name="Books3" type="Sprite2D" parent="."]
26+
position = Vector2(-7, -73)
27+
texture = ExtResource("2_ej8sk")
28+
29+
[node name="Books4" type="Sprite2D" parent="."]
30+
position = Vector2(-1, -94)
31+
texture = ExtResource("2_ej8sk")
32+
33+
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
34+
rotation = -1.5707964
35+
shape = SubResource("CapsuleShape2D_grfk2")
36+
37+
[node name="HookableArea" type="Area2D" parent="." node_paths=PackedStringArray("controlled_entity")]
38+
collision_layer = 4096
39+
collision_mask = 0
40+
script = ExtResource("3_ej8sk")
41+
controlled_entity = NodePath("..")
42+
weight = 0.0
43+
metadata/_custom_type_script = "uid://dabvr3pqmyya4"
44+
45+
[node name="CollisionShape2D" type="CollisionShape2D" parent="HookableArea"]
46+
position = Vector2(0, -51)
47+
shape = SubResource("RectangleShape2D_5vg6g")
48+
debug_color = Color(0.689707, 0.288376, 1, 0.42)

0 commit comments

Comments
 (0)