1
0
forked from Julian/contra
contra/scenes/enemy_1.tscn
2024-11-12 18:51:04 +01:00

86 lines
2.2 KiB
Plaintext

[gd_scene load_steps=8 format=3 uid="uid://baf116r6im2t5"]
[ext_resource type="Script" path="res://Scripts/Enemy1.gd" id="1_igep6"]
[ext_resource type="Texture2D" uid="uid://wcxuabeva6d1" path="res://Sprites/enemigo_base.png" id="2_6l3rw"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ao67j"]
size = Vector2(9, 30)
[sub_resource type="Animation" id="Animation_5ddwa"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite2D:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [0]
}
[sub_resource type="Animation" id="Animation_cu8uk"]
resource_name = "jump"
length = 0.1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite2D:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [3]
}
[sub_resource type="Animation" id="Animation_1auo3"]
resource_name = "run"
length = 0.3
loop_mode = 1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite2D:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.1, 0.2),
"transitions": PackedFloat32Array(1, 1, 1),
"update": 1,
"values": [0, 1, 2]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_i8kxs"]
_data = {
"RESET": SubResource("Animation_5ddwa"),
"jump": SubResource("Animation_cu8uk"),
"run": SubResource("Animation_1auo3")
}
[node name="Enemy1" type="CharacterBody2D" groups=["enemy"]]
position = Vector2(397, 87)
collision_layer = 3
collision_mask = 3
script = ExtResource("1_igep6")
[node name="Sprite2D" type="Sprite2D" parent="."]
texture = ExtResource("2_6l3rw")
hframes = 3
vframes = 2
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(-1.5, 1)
shape = SubResource("RectangleShape2D_ao67j")
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
autoplay = "run"
libraries = {
"": SubResource("AnimationLibrary_i8kxs")
}
[node name="VisibleOnScreenEnabler2D" type="VisibleOnScreenEnabler2D" parent="."]