godot-webrtc-mplayer-testing/objects/slime.tscn

64 lines
1.7 KiB
Plaintext
Raw Permalink Normal View History

2021-12-17 17:10:56 -06:00
[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]
2021-12-21 16:40:58 -06:00
[sub_resource type="AtlasTexture" id=5]
atlas = ExtResource( 1 )
region = Rect2( 0, 432, 16, 36 )
2021-12-17 17:10:56 -06:00
[sub_resource type="AtlasTexture" id=1]
atlas = ExtResource( 1 )
2021-12-21 16:40:58 -06:00
region = Rect2( 0, 432, 16, 36 )
2021-12-17 17:10:56 -06:00
[sub_resource type="AtlasTexture" id=2]
atlas = ExtResource( 1 )
2021-12-21 16:40:58 -06:00
region = Rect2( 18, 432, 16, 36 )
2021-12-17 17:10:56 -06:00
[sub_resource type="AtlasTexture" id=3]
atlas = ExtResource( 1 )
2021-12-21 16:40:58 -06:00
region = Rect2( 36, 432, 16, 36 )
2021-12-17 17:10:56 -06:00
[sub_resource type="AtlasTexture" id=4]
atlas = ExtResource( 1 )
2021-12-21 16:40:58 -06:00
region = Rect2( 54, 432, 16, 36 )
2021-12-17 17:10:56 -06:00
[sub_resource type="AtlasTexture" id=6]
atlas = ExtResource( 1 )
2021-12-21 16:40:58 -06:00
region = Rect2( 0, 432, 16, 36 )
2021-12-17 17:10:56 -06:00
[sub_resource type="SpriteFrames" id=7]
animations = [ {
2021-12-21 16:40:58 -06:00
"frames": [ SubResource( 5 ), SubResource( 1 ), SubResource( 2 ), SubResource( 3 ), SubResource( 4 ), SubResource( 6 ) ],
2021-12-17 17:10:56 -06:00
"loop": true,
"name": "idle",
"speed": 6.0
} ]
[sub_resource type="CapsuleShape2D" id=8]
radius = 6.0
2021-12-21 16:40:58 -06:00
height = 0.0
2021-12-17 17:10:56 -06:00
[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"
2021-12-21 16:40:58 -06:00
frame = 1
2021-12-17 17:10:56 -06:00
playing = true
2021-12-21 16:40:58 -06:00
offset = Vector2( 1, -11 )
2021-12-17 17:10:56 -06:00
[node name="hurtbox" type="CollisionShape2D" parent="."]
scale = Vector2( 4, 4 )
shape = SubResource( 8 )
script = ExtResource( 3 )
2021-12-21 16:40:58 -06:00
[node name="nav_line" type="Line2D" parent="."]
points = PoolVector2Array( 0, 30, 30, 30, 0, 0 )
2021-12-17 17:10:56 -06:00
[connection signal="die" from="hurtbox" to="." method="_on_hurtbox_die"]