2022-07-21 00:05:08 -04:00
|
|
|
[gd_scene load_steps=8 format=2]
|
2022-05-25 16:13:29 -04:00
|
|
|
|
|
|
|
[ext_resource path="res://assets/characters/characters.png" type="Texture" id=1]
|
2022-07-21 00:05:08 -04:00
|
|
|
[ext_resource path="res://characters/enemies/dreadtooth/Dreadtooth.gd" type="Script" id=2]
|
2022-05-25 16:13:29 -04:00
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id=1]
|
|
|
|
atlas = ExtResource( 1 )
|
|
|
|
region = Rect2( 192, 24, 24, 24 )
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id=2]
|
|
|
|
atlas = ExtResource( 1 )
|
|
|
|
region = Rect2( 144, 24, 24, 24 )
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id=3]
|
|
|
|
atlas = ExtResource( 1 )
|
|
|
|
region = Rect2( 168, 24, 24, 24 )
|
|
|
|
|
|
|
|
[sub_resource type="SpriteFrames" id=4]
|
|
|
|
animations = [ {
|
|
|
|
"frames": [ SubResource( 1 ) ],
|
|
|
|
"loop": true,
|
|
|
|
"name": "hide",
|
|
|
|
"speed": 5.0
|
|
|
|
}, {
|
|
|
|
"frames": [ SubResource( 2 ), SubResource( 3 ) ],
|
|
|
|
"loop": true,
|
|
|
|
"name": "walk",
|
|
|
|
"speed": 5.0
|
|
|
|
} ]
|
|
|
|
|
|
|
|
[sub_resource type="RectangleShape2D" id=5]
|
2022-07-21 00:05:08 -04:00
|
|
|
extents = Vector2( 7.5, 6.5 )
|
2022-05-25 16:13:29 -04:00
|
|
|
|
2022-07-21 00:05:08 -04:00
|
|
|
[node name="Dreadtooth" type="KinematicBody2D" groups=["enemy"]]
|
2022-06-17 11:33:58 -04:00
|
|
|
collision_layer = 8
|
|
|
|
collision_mask = 11
|
2022-07-21 00:05:08 -04:00
|
|
|
script = ExtResource( 2 )
|
2022-05-25 16:13:29 -04:00
|
|
|
|
|
|
|
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
|
|
|
|
frames = SubResource( 4 )
|
|
|
|
animation = "walk"
|
2022-07-21 00:05:08 -04:00
|
|
|
frame = 1
|
2022-08-04 00:56:14 -04:00
|
|
|
playing = true
|
2022-05-25 16:13:29 -04:00
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
2022-07-21 00:05:08 -04:00
|
|
|
position = Vector2( -0.5, 5.5 )
|
2022-05-25 16:13:29 -04:00
|
|
|
shape = SubResource( 5 )
|
2022-07-21 00:05:08 -04:00
|
|
|
|
|
|
|
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."]
|
|
|
|
polygon = PoolVector2Array( 0, -7, 3, -4, 3, -1, -4, -1, -4, -4, -1, -7 )
|
|
|
|
|
|
|
|
[node name="FloorChecker" type="RayCast2D" parent="."]
|
|
|
|
enabled = true
|
|
|
|
cast_to = Vector2( 0, 20 )
|
|
|
|
collision_mask = 10
|