-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathEnemy.tscn
30 lines (23 loc) · 883 Bytes
/
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
[gd_scene load_steps=6 format=2]
[ext_resource path="res://sprites/spider.png" type="Texture" id=1]
[ext_resource path="res://scripts/Enemy.gd" type="Script" id=2]
[ext_resource path="res://audio/enemy_hurt.wav" type="AudioStream" id=3]
[sub_resource type="PhysicsMaterial" id=2]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 16, 12 )
[node name="Enemy" type="RigidBody2D" groups=["enemy"]]
mode = 3
physics_material_override = SubResource( 2 )
continuous_cd = 2
contacts_reported = 10
contact_monitor = true
script = ExtResource( 2 )
[node name="Sprite" type="Sprite" parent="."]
texture = ExtResource( 1 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( 0, 4 )
shape = SubResource( 1 )
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 3 )
volume_db = -10.0
bus = "SoundEffects"