godot-webrtc-mplayer-testing/objects/slime.tscn
2021-12-21 16:40:58 -06:00

64 lines
1.7 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"
frame = 1
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 )
[connection signal="die" from="hurtbox" to="." method="_on_hurtbox_die"]