the-crypt/ai/ogre.tscn

58 lines
1.4 KiB
Plaintext
Raw Normal View History

2020-07-20 14:24:15 -05:00
[gd_scene load_steps=6 format=2]
2020-07-19 23:45:39 -05:00
[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 ]
}
2020-07-20 14:24:15 -05:00
[sub_resource type="CapsuleShape2D" id=3]
radius = 12.0
height = 6.0
2020-07-19 23:45:39 -05:00
[node name="Ogre" type="KinematicBody2D"]
collision_layer = 4
2020-07-20 14:24:15 -05:00
collision_mask = 2147483655
2020-07-19 23:45:39 -05:00
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 )
2020-07-20 14:24:15 -05:00
[node name="Area2D" type="Area2D" parent="."]
collision_layer = 0
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
position = Vector2( 1, -13 )
shape = SubResource( 3 )