oldie/scenes/enemies/goomba/Goomba.tscn

40 lines
972 B
Plaintext
Raw Normal View History

2022-11-09 20:21:26 -03:00
[gd_scene load_steps=7 format=2]
[ext_resource path="res://assets/goomba/walking.png" type="Texture" id=1]
[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]
extents = Vector2( 6.5, 7 )
[node name="Goomba" type="KinematicBody2D"]
collision_layer = 4
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
frames = SubResource( 4 )
animation = "walk"
playing = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
visible = false
position = Vector2( 0.5, 2 )
shape = SubResource( 5 )