oldie/scenes/enemies/turtle/blue/BlueTurtle.tscn

68 lines
1.8 KiB
Plaintext
Raw Normal View History

2022-11-21 01:49:31 -03:00
[gd_scene load_steps=11 format=2]
2022-11-09 20:21:26 -03:00
[ext_resource path="res://assets/turtle/blue_walking.png" type="Texture" id=1]
[ext_resource path="res://assets/turtle/blue_shell.png" type="Texture" id=2]
2022-11-21 01:49:31 -03:00
[ext_resource path="res://scenes/enemies/turtle/blue/BlueTurtle.cs" type="Script" id=3]
2022-11-09 20:21:26 -03:00
[sub_resource type="AtlasTexture" id=6]
atlas = ExtResource( 2 )
region = Rect2( 0, 0, 16, 16 )
[sub_resource type="AtlasTexture" id=1]
atlas = ExtResource( 1 )
region = Rect2( 0, 0, 32, 16 )
[sub_resource type="AtlasTexture" id=2]
atlas = ExtResource( 1 )
region = Rect2( 32, 0, 32, 16 )
[sub_resource type="AtlasTexture" id=3]
atlas = ExtResource( 1 )
region = Rect2( 64, 0, 32, 16 )
[sub_resource type="SpriteFrames" id=4]
animations = [ {
"frames": [ SubResource( 6 ) ],
"loop": true,
"name": "shell",
"speed": 5.0
}, {
"frames": [ SubResource( 1 ), SubResource( 2 ), SubResource( 3 ) ],
"loop": true,
"name": "walk",
"speed": 6.0
} ]
[sub_resource type="RectangleShape2D" id=5]
extents = Vector2( 9.5, 8 )
[sub_resource type="RectangleShape2D" id=7]
extents = Vector2( 5.5, 6 )
[node name="BlueTurtle" type="KinematicBody2D"]
collision_layer = 4
collision_mask = 5
2022-11-21 01:49:31 -03:00
script = ExtResource( 3 )
2022-11-09 20:21:26 -03:00
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
frames = SubResource( 4 )
animation = "walk"
[node name="NormalCollision" type="CollisionShape2D" parent="."]
visible = false
position = Vector2( -0.5, 0 )
shape = SubResource( 5 )
[node name="ShellCollision" type="CollisionShape2D" parent="."]
visible = false
position = Vector2( -0.5, 2 )
shape = SubResource( 7 )
disabled = true
2022-11-21 01:49:31 -03:00
[node name="VisibilityEnabler2D" type="VisibilityEnabler2D" parent="."]
2022-11-21 02:14:52 -03:00
visible = false
2022-11-21 01:49:31 -03:00
process_parent = true
physics_process_parent = true
[connection signal="screen_exited" from="VisibilityEnabler2D" to="." method="OnVisibilityNotifier2DScreenExited"]