forked from Zanzigzan/ChaosHacks-2024
-
Notifications
You must be signed in to change notification settings - Fork 0
/
enemy.tscn
34 lines (26 loc) · 1.23 KB
/
enemy.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
[gd_scene load_steps=6 format=3 uid="uid://c0uf3xsnhgll4"]
[ext_resource type="Script" path="res://enemy.gd" id="1_pvroe"]
[ext_resource type="Texture2D" uid="uid://ca0hxsb7qei2m" path="res://Resources/assets/cars.png" id="2_qonbe"]
[ext_resource type="Script" path="res://RandomSprite.gd" id="3_0imhu"]
[ext_resource type="AudioStream" uid="uid://o36fwr741vd3" path="res://VDS sounds/Hit Sounds - Sound Effects for editing.mp3" id="4_ve1vo"]
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_y1pgl"]
radius = 29.0
height = 104.0
[node name="Enemy" type="Area2D"]
collision_layer = 6
collision_mask = 7
collision_priority = 2.0
script = ExtResource("1_pvroe")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
visibility_layer = 3
shape = SubResource("CapsuleShape2D_y1pgl")
[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="."]
[node name="RandomSprite" type="Sprite2D" parent="."]
scale = Vector2(2, 2)
texture = ExtResource("2_qonbe")
region_enabled = true
region_rect = Rect2(32, -0.127, 32, 52.342)
script = ExtResource("3_0imhu")
[node name="Crash" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource("4_ve1vo")
[connection signal="body_entered" from="." to="." method="_on_body_entered"]