the-crypt/ai/ogre.tscn

47 lines
1.1 KiB
Plaintext
Raw Normal View History

2020-07-19 23:45:39 -05:00
[gd_scene load_steps=5 format=2]
[ext_resource path="res://ai/ogre.gd" type="Script" id=1]
[ext_resource path="res://art/Ogre_Run.png" type="Texture" id=2]
[sub_resource type="CapsuleShape2D" id=1]
height = 4.0
[sub_resource type="Animation" id=2]
resource_name = "Run"
length = 0.35
loop = true
tracks/0/type = "value"
tracks/0/path = NodePath("Sprite:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.1, 0.2, 0.3 ),
"transitions": PoolRealArray( 1, 1, 1, 1 ),
"update": 1,
"values": [ 0, 1, 2, 3 ]
}
[node name="Ogre" type="KinematicBody2D"]
collision_layer = 4
collision_mask = 2147483651
script = ExtResource( 1 )
[node name="Sprite" type="Sprite" parent="."]
position = Vector2( 0, -17 )
texture = ExtResource( 2 )
hframes = 4
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( 1, -12 )
shape = SubResource( 1 )
[node name="DamageCD" type="Timer" parent="."]
wait_time = 0.5
one_shot = true
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
autoplay = "Run"
anims/Run = SubResource( 2 )