67 lines
1.8 KiB
Plaintext
67 lines
1.8 KiB
Plaintext
[gd_scene load_steps=12 format=2]
|
|
|
|
[ext_resource path="res://assets/img/spaced-dungeon-tileset.png" type="Texture" id=1]
|
|
[ext_resource path="res://scripts/objects/slime.gd" type="Script" id=2]
|
|
[ext_resource path="res://scripts/objects/destructable.gd" type="Script" id=3]
|
|
|
|
[sub_resource type="AtlasTexture" id=5]
|
|
atlas = ExtResource( 1 )
|
|
region = Rect2( 0, 432, 16, 36 )
|
|
|
|
[sub_resource type="AtlasTexture" id=1]
|
|
atlas = ExtResource( 1 )
|
|
region = Rect2( 0, 432, 16, 36 )
|
|
|
|
[sub_resource type="AtlasTexture" id=2]
|
|
atlas = ExtResource( 1 )
|
|
region = Rect2( 18, 432, 16, 36 )
|
|
|
|
[sub_resource type="AtlasTexture" id=3]
|
|
atlas = ExtResource( 1 )
|
|
region = Rect2( 36, 432, 16, 36 )
|
|
|
|
[sub_resource type="AtlasTexture" id=4]
|
|
atlas = ExtResource( 1 )
|
|
region = Rect2( 54, 432, 16, 36 )
|
|
|
|
[sub_resource type="AtlasTexture" id=6]
|
|
atlas = ExtResource( 1 )
|
|
region = Rect2( 0, 432, 16, 36 )
|
|
|
|
[sub_resource type="SpriteFrames" id=7]
|
|
animations = [ {
|
|
"frames": [ SubResource( 5 ), SubResource( 1 ), SubResource( 2 ), SubResource( 3 ), SubResource( 4 ), SubResource( 6 ) ],
|
|
"loop": true,
|
|
"name": "idle",
|
|
"speed": 6.0
|
|
} ]
|
|
|
|
[sub_resource type="CapsuleShape2D" id=8]
|
|
radius = 6.0
|
|
height = 0.0
|
|
|
|
[node name="slime" type="KinematicBody2D"]
|
|
scale = Vector2( 2, 2 )
|
|
script = ExtResource( 2 )
|
|
|
|
[node name="sprite" type="AnimatedSprite" parent="."]
|
|
scale = Vector2( 4, 4 )
|
|
frames = SubResource( 7 )
|
|
animation = "idle"
|
|
playing = true
|
|
offset = Vector2( 1, -11 )
|
|
|
|
[node name="hurtbox" type="CollisionShape2D" parent="."]
|
|
scale = Vector2( 4, 4 )
|
|
shape = SubResource( 8 )
|
|
script = ExtResource( 3 )
|
|
|
|
[node name="nav_line" type="Line2D" parent="."]
|
|
points = PoolVector2Array( 0, 30, 30, 30, 0, 0 )
|
|
|
|
[node name="NavigationAgent2D" type="NavigationAgent2D" parent="."]
|
|
target_desired_distance = 60.0
|
|
radius = 30.0
|
|
|
|
[connection signal="die" from="hurtbox" to="." method="_on_hurtbox_die"]
|