CrawlingEnemy, PlantEnemy
This commit is contained in:
parent
930ff3e2bb
commit
f6758e1dba
6 changed files with 233 additions and 4 deletions
76
metroidvania/Scenes/Enemies/PlantEnemy.tscn
Normal file
76
metroidvania/Scenes/Enemies/PlantEnemy.tscn
Normal file
|
@ -0,0 +1,76 @@
|
|||
[gd_scene load_steps=7 format=2]
|
||||
|
||||
[ext_resource path="res://Scenes/Enemies/Enemy.tscn" type="PackedScene" id=1]
|
||||
[ext_resource path="res://Assets/Enemies/PlantEnemy.png" type="Texture" id=2]
|
||||
[ext_resource path="res://Scenes/Enemies/PlantEnemy.gd" type="Script" id=3]
|
||||
|
||||
[sub_resource type="Animation" id=1]
|
||||
resource_name = "Animate"
|
||||
length = 2.0
|
||||
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.4, 0.5, 0.6 ),
|
||||
"transitions": PoolRealArray( 1, 1, 1, 1, 1, 1 ),
|
||||
"update": 1,
|
||||
"values": [ 0, 1, 2, 3, 4, 5 ]
|
||||
}
|
||||
tracks/1/type = "method"
|
||||
tracks/1/path = NodePath(".")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/keys = {
|
||||
"times": PoolRealArray( 0.6 ),
|
||||
"transitions": PoolRealArray( 1 ),
|
||||
"values": [ {
|
||||
"args": [ ],
|
||||
"method": "fire_bullet"
|
||||
} ]
|
||||
}
|
||||
|
||||
[sub_resource type="RectangleShape2D" id=2]
|
||||
extents = Vector2( 8, 7 )
|
||||
|
||||
[sub_resource type="CircleShape2D" id=3]
|
||||
radius = 6.0
|
||||
|
||||
[node name="PlantEnemy" instance=ExtResource( 1 )]
|
||||
script = ExtResource( 3 )
|
||||
|
||||
[node name="Sprite" parent="." index="0"]
|
||||
position = Vector2( 0, -8 )
|
||||
texture = ExtResource( 2 )
|
||||
hframes = 6
|
||||
frame = 5
|
||||
|
||||
[node name="AnimationPlayer" parent="." index="2"]
|
||||
autoplay = "Animate"
|
||||
anims/Animate = SubResource( 1 )
|
||||
|
||||
[node name="Collider" parent="Hurtbox" index="0"]
|
||||
position = Vector2( 0, -7 )
|
||||
shape = SubResource( 2 )
|
||||
|
||||
[node name="Collider" parent="Hitbox" index="0"]
|
||||
position = Vector2( 0, -7 )
|
||||
shape = SubResource( 3 )
|
||||
|
||||
[node name="EnemyStats" parent="." index="5"]
|
||||
max_health = 3
|
||||
|
||||
[node name="BulletSpawnPoint" type="Position2D" parent="." index="6"]
|
||||
position = Vector2( 0, -9 )
|
||||
|
||||
[node name="FireDirection" type="Position2D" parent="." index="7"]
|
||||
position = Vector2( 0, -14 )
|
||||
|
||||
[editable path="Hurtbox"]
|
||||
|
||||
[editable path="Hitbox"]
|
Loading…
Add table
Add a link
Reference in a new issue