oldie/scenes/enemies/goomba/Goomba.tscn

51 lines
1.4 KiB
Plaintext
Raw Permalink Normal View History

2022-11-21 00:42:55 -03:00
[gd_scene load_steps=8 format=2]
2022-11-09 20:21:26 -03:00
[ext_resource path="res://assets/goomba/walking.png" type="Texture" id=1]
2022-11-21 00:42:55 -03:00
[ext_resource path="res://scenes/enemies/goomba/Goomba.cs" type="Script" id=2]
2022-11-09 20:21:26 -03:00
[sub_resource type="AtlasTexture" id=1]
atlas = ExtResource( 1 )
region = Rect2( 0, 0, 16, 19 )
[sub_resource type="AtlasTexture" id=2]
atlas = ExtResource( 1 )
region = Rect2( 16, 0, 16, 19 )
[sub_resource type="AtlasTexture" id=3]
atlas = ExtResource( 1 )
region = Rect2( 32, 0, 16, 19 )
[sub_resource type="SpriteFrames" id=4]
animations = [ {
"frames": [ SubResource( 1 ), SubResource( 2 ), SubResource( 3 ) ],
"loop": true,
"name": "walk",
"speed": 6.0
} ]
[sub_resource type="RectangleShape2D" id=5]
2022-11-21 00:42:55 -03:00
extents = Vector2( 6.67969, 7 )
2022-11-09 20:21:26 -03:00
2022-11-19 23:08:24 -03:00
[node name="Goomba" type="KinematicBody2D" groups=["Enemy", "Stompable"]]
2022-11-09 20:21:26 -03:00
collision_layer = 4
collision_mask = 5
2022-11-21 00:42:55 -03:00
script = ExtResource( 2 )
2022-11-09 20:21:26 -03:00
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
frames = SubResource( 4 )
animation = "walk"
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
visible = false
2022-11-21 00:42:55 -03:00
position = Vector2( 0.320312, 2 )
2022-11-09 20:21:26 -03:00
shape = SubResource( 5 )
2022-11-21 00:42:55 -03:00
[node name="VisibilityEnabler2D" type="VisibilityEnabler2D" parent="."]
visible = false
position = Vector2( 1, 0 )
rect = Rect2( -9, -9, 18, 18 )
process_parent = true
physics_process_parent = true
[connection signal="screen_exited" from="VisibilityEnabler2D" to="." method="OnVisibilityNotifier2DScreenExited"]