codename-scribe/Enemy.tscn

61 lines
1.3 KiB
Plaintext
Raw Normal View History

[gd_scene load_steps=8 format=1]
[ext_resource path="res://Enemy.gd" type="Script" id=1]
[ext_resource path="res://enright.png" type="Texture" id=2]
[ext_resource path="res://enleft.png" type="Texture" id=3]
[ext_resource path="res://enup.png" type="Texture" id=4]
[ext_resource path="res://endown.png" type="Texture" id=5]
[sub_resource type="RectangleShape2D" id=2]
custom_solver_bias = 0.0
extents = Vector2( 16.7704, 24.8305 )
[sub_resource type="SpriteFrames" id=1]
animations = [ {
"frames": [ ExtResource( 2 ) ],
"loop": true,
"name": "right",
"speed": 5.0
}, {
"frames": [ ExtResource( 3 ) ],
"loop": true,
"name": "left",
"speed": 5.0
}, {
"frames": [ ExtResource( 4 ) ],
"loop": true,
"name": "up",
"speed": 5.0
}, {
"frames": [ ExtResource( 5 ) ],
"loop": true,
"name": "down",
"speed": 5.0
} ]
[node name="Enemy" type="KinematicBody2D"]
input/pickable = false
shapes/0/shape = SubResource( 2 )
shapes/0/transform = Matrix32( 1, 0, 0, 1, 0, 0 )
shapes/0/trigger = false
collision/layers = 1
collision/mask = 1
collision/margin = 0.08
script/script = ExtResource( 1 )
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
frames = SubResource( 1 )
animation = "up"
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource( 2 )
trigger = false
_update_shape_index = 0