[gd_scene load_steps=9 format=2] [ext_resource path="res://scripts/1px_border.gdshader" type="Shader" id=1] [ext_resource path="res://graphics/enemy/snail.png" type="Texture" id=2] [ext_resource path="res://objects/enemy/enemy_move_sidesideupdown.gd" type="Script" id=3] [sub_resource type="ShaderMaterial" id=1] shader = ExtResource( 1 ) shader_param/border_color = Color( 0, 0, 0, 1 ) shader_param/border_corners = false [sub_resource type="AtlasTexture" id=2] atlas = ExtResource( 2 ) region = Rect2( 0, 0, 12, 11 ) [sub_resource type="AtlasTexture" id=3] atlas = ExtResource( 2 ) region = Rect2( 12, 0, 12, 11 ) [sub_resource type="SpriteFrames" id=4] animations = [ { "frames": [ SubResource( 2 ), SubResource( 3 ) ], "loop": true, "name": "default", "speed": 5.0 } ] [sub_resource type="RectangleShape2D" id=5] extents = Vector2( 4, 4 ) [node name="Snail" type="Node2D"] script = ExtResource( 3 ) [node name="AnimatedSprite" type="AnimatedSprite" parent="."] material = SubResource( 1 ) frames = SubResource( 4 ) frame = 1 playing = true [node name="Area2D" type="Area2D" parent="."] visible = false [node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"] position = Vector2( 0, 1 ) shape = SubResource( 5 ) [node name="RayCast2D" type="RayCast2D" parent="."] cast_to = Vector2( 32, 0 ) [connection signal="area_entered" from="Area2D" to="." method="_on_Area2D_area_entered"]