1
Fork 0
mirror of https://github.com/Steffo99/watermelonkeys-patched-ld51.git synced 2024-11-23 08:24:23 +00:00
fading-sun/enemies/Enemy.tscn
AndreaTerenz f31eb7d496 lights
2022-10-03 16:32:11 +02:00

82 lines
2.1 KiB
Text

[gd_scene load_steps=13 format=2]
[ext_resource path="res://ASSETS/enemy_spritesheet.png" type="Texture" id=1]
[ext_resource path="res://enemies/Enemy.gd" type="Script" id=2]
[sub_resource type="AtlasTexture" id=8]
atlas = ExtResource( 1 )
region = Rect2( 0, 0, 30, 30 )
[sub_resource type="AtlasTexture" id=9]
atlas = ExtResource( 1 )
region = Rect2( 30, 0, 30, 30 )
[sub_resource type="AtlasTexture" id=10]
atlas = ExtResource( 1 )
region = Rect2( 60, 0, 30, 30 )
[sub_resource type="AtlasTexture" id=11]
atlas = ExtResource( 1 )
region = Rect2( 90, 0, 30, 30 )
[sub_resource type="SpriteFrames" id=1]
animations = [ {
"frames": [ SubResource( 8 ), SubResource( 9 ), SubResource( 10 ), SubResource( 11 ), SubResource( 10 ), SubResource( 9 ), SubResource( 8 ) ],
"loop": true,
"name": "roaming",
"speed": 30.0
}, {
"frames": [ SubResource( 8 ), SubResource( 9 ), SubResource( 10 ), SubResource( 11 ) ],
"loop": false,
"name": "spawning",
"speed": 4.0
} ]
[sub_resource type="CircleShape2D" id=2]
radius = 34.0588
[sub_resource type="Gradient" id=3]
[sub_resource type="GradientTexture" id=4]
gradient = SubResource( 3 )
width = 100
[sub_resource type="Gradient" id=5]
offsets = PoolRealArray( 0 )
colors = PoolColorArray( 1, 0, 0, 1 )
[sub_resource type="GradientTexture" id=6]
gradient = SubResource( 5 )
width = 100
[node name="Enemy" type="KinematicBody2D"]
scale = Vector2( 0.5, 0.5 )
collision_mask = 5
script = ExtResource( 2 )
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
scale = Vector2( 2, 2 )
frames = SubResource( 1 )
animation = "spawning"
flip_h = true
[node name="RayCast2D" type="RayCast2D" parent="."]
enabled = true
cast_to = Vector2( 50, 0 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource( 2 )
[node name="DEBUG_Dir" type="Sprite" parent="."]
visible = false
scale = Vector2( 1, 4 )
texture = SubResource( 4 )
offset = Vector2( 50, 0 )
[node name="DEBUG_Vel" type="Sprite" parent="."]
visible = false
scale = Vector2( 0.48, 4 )
texture = SubResource( 6 )
offset = Vector2( 50, 0 )
[connection signal="animation_finished" from="AnimatedSprite" to="." method="_on_AnimatedSprite_animation_finished"]