75 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
		
		
			
		
	
	
			75 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| 
								 | 
							
								[gd_scene load_steps=9 format=3 uid="uid://cydfsa8y0pare"]
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								[ext_resource type="Script" path="res://scripts/purpleslime.gd" id="1_03sou"]
							 | 
						||
| 
								 | 
							
								[ext_resource type="Texture2D" uid="uid://dnx3p16h7uu10" path="res://assets/graphics/enemies/slime_purple.png" id="1_jepv4"]
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								[sub_resource type="AtlasTexture" id="AtlasTexture_jrp4r"]
							 | 
						||
| 
								 | 
							
								atlas = ExtResource("1_jepv4")
							 | 
						||
| 
								 | 
							
								region = Rect2(0, 24, 24, 24)
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								[sub_resource type="AtlasTexture" id="AtlasTexture_2edr0"]
							 | 
						||
| 
								 | 
							
								atlas = ExtResource("1_jepv4")
							 | 
						||
| 
								 | 
							
								region = Rect2(24, 24, 24, 24)
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								[sub_resource type="AtlasTexture" id="AtlasTexture_71vcq"]
							 | 
						||
| 
								 | 
							
								atlas = ExtResource("1_jepv4")
							 | 
						||
| 
								 | 
							
								region = Rect2(48, 24, 24, 24)
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								[sub_resource type="AtlasTexture" id="AtlasTexture_js5bb"]
							 | 
						||
| 
								 | 
							
								atlas = ExtResource("1_jepv4")
							 | 
						||
| 
								 | 
							
								region = Rect2(72, 24, 24, 24)
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								[sub_resource type="SpriteFrames" id="SpriteFrames_vbboo"]
							 | 
						||
| 
								 | 
							
								animations = [{
							 | 
						||
| 
								 | 
							
								"frames": [{
							 | 
						||
| 
								 | 
							
								"duration": 1.0,
							 | 
						||
| 
								 | 
							
								"texture": SubResource("AtlasTexture_jrp4r")
							 | 
						||
| 
								 | 
							
								}, {
							 | 
						||
| 
								 | 
							
								"duration": 1.0,
							 | 
						||
| 
								 | 
							
								"texture": SubResource("AtlasTexture_2edr0")
							 | 
						||
| 
								 | 
							
								}, {
							 | 
						||
| 
								 | 
							
								"duration": 1.0,
							 | 
						||
| 
								 | 
							
								"texture": SubResource("AtlasTexture_71vcq")
							 | 
						||
| 
								 | 
							
								}, {
							 | 
						||
| 
								 | 
							
								"duration": 1.0,
							 | 
						||
| 
								 | 
							
								"texture": SubResource("AtlasTexture_js5bb")
							 | 
						||
| 
								 | 
							
								}],
							 | 
						||
| 
								 | 
							
								"loop": true,
							 | 
						||
| 
								 | 
							
								"name": &"idle",
							 | 
						||
| 
								 | 
							
								"speed": 12.0
							 | 
						||
| 
								 | 
							
								}]
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								[sub_resource type="RectangleShape2D" id="RectangleShape2D_3mkso"]
							 | 
						||
| 
								 | 
							
								size = Vector2(12, 13)
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								[node name="Area2D" type="Area2D" groups=["enemies"]]
							 | 
						||
| 
								 | 
							
								script = ExtResource("1_03sou")
							 | 
						||
| 
								 | 
							
								metadata/_edit_group_ = true
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
							 | 
						||
| 
								 | 
							
								texture_filter = 1
							 | 
						||
| 
								 | 
							
								sprite_frames = SubResource("SpriteFrames_vbboo")
							 | 
						||
| 
								 | 
							
								animation = &"idle"
							 | 
						||
| 
								 | 
							
								autoplay = "idle"
							 | 
						||
| 
								 | 
							
								frame_progress = 0.202321
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
							 | 
						||
| 
								 | 
							
								position = Vector2(0, 5.5)
							 | 
						||
| 
								 | 
							
								shape = SubResource("RectangleShape2D_3mkso")
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								[node name="rightray" type="RayCast2D" parent="."]
							 | 
						||
| 
								 | 
							
								target_position = Vector2(11, 0)
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								[node name="leftray" type="RayCast2D" parent="."]
							 | 
						||
| 
								 | 
							
								target_position = Vector2(-11, 0)
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								[node name="rightfloorray" type="RayCast2D" parent="."]
							 | 
						||
| 
								 | 
							
								position = Vector2(7, 0)
							 | 
						||
| 
								 | 
							
								target_position = Vector2(0, 13)
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								[node name="leftfloorray" type="RayCast2D" parent="."]
							 | 
						||
| 
								 | 
							
								position = Vector2(-7, 0)
							 | 
						||
| 
								 | 
							
								target_position = Vector2(0, 13)
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								[connection signal="body_entered" from="." to="." method="_on_body_entered"]
							 |