godot-webrtc-mplayer-testing/objects/slime.tscn
2021-12-17 17:10:56 -06:00

62 lines
1.6 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=1]
atlas = ExtResource( 1 )
region = Rect2( 0, 432, 18, 36 )
[sub_resource type="AtlasTexture" id=2]
atlas = ExtResource( 1 )
region = Rect2( 18, 432, 18, 36 )
[sub_resource type="AtlasTexture" id=3]
atlas = ExtResource( 1 )
region = Rect2( 36, 432, 18, 36 )
[sub_resource type="AtlasTexture" id=4]
atlas = ExtResource( 1 )
region = Rect2( 54, 432, 18, 36 )
[sub_resource type="AtlasTexture" id=5]
atlas = ExtResource( 1 )
region = Rect2( 0, 432, 18, 36 )
[sub_resource type="AtlasTexture" id=6]
atlas = ExtResource( 1 )
region = Rect2( 0, 432, 18, 36 )
[sub_resource type="SpriteFrames" id=7]
animations = [ {
"frames": [ SubResource( 1 ), SubResource( 2 ), SubResource( 3 ), SubResource( 4 ), SubResource( 5 ), SubResource( 6 ) ],
"loop": true,
"name": "idle",
"speed": 6.0
} ]
[sub_resource type="CapsuleShape2D" id=8]
radius = 6.0
height = 1.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 = 3
playing = true
offset = Vector2( 1, -17 )
[node name="hurtbox" type="CollisionShape2D" parent="."]
position = Vector2( 0, -26 )
scale = Vector2( 4, 4 )
shape = SubResource( 8 )
script = ExtResource( 3 )
[connection signal="die" from="hurtbox" to="." method="_on_hurtbox_die"]