diff --git a/Scenes/Spawnables/AIs/ai_template.gd b/Scenes/Spawnables/AIs/ai_template.gd index c869669..ad017cf 100644 --- a/Scenes/Spawnables/AIs/ai_template.gd +++ b/Scenes/Spawnables/AIs/ai_template.gd @@ -1,5 +1,5 @@ class_name AITemplate extends Node -func run(position, enemyPosition) -> Vector2: +func getDirection(position, enemyPosition) -> Vector2: return Vector2.ZERO diff --git a/Scenes/Spawnables/bat_spawnable.tscn b/Scenes/Spawnables/bat_spawnable.tscn index 3a012cc..fa3f0ab 100644 --- a/Scenes/Spawnables/bat_spawnable.tscn +++ b/Scenes/Spawnables/bat_spawnable.tscn @@ -10,5 +10,8 @@ speed = 100.0 damage = 1 priority = 1 +[node name="AnimatedSprite2D" parent="." index="0"] +frame_progress = 0.482614 + [node name="AI" parent="." index="3"] script = ExtResource("2_x3ldf") diff --git a/Scenes/Spawnables/template_spawnable.gd b/Scenes/Spawnables/template_spawnable.gd index 2c6e9c0..e3c418b 100644 --- a/Scenes/Spawnables/template_spawnable.gd +++ b/Scenes/Spawnables/template_spawnable.gd @@ -20,6 +20,7 @@ var cooldown : float = 0 func _ready(): enemy = get_node("../Enemy") currentHp = maxHp + animatedSprite.play("default") func _process(delta): if !isAlive: diff --git a/Scenes/Spawnables/template_spawnable.tscn b/Scenes/Spawnables/template_spawnable.tscn index 7e4b9c6..bfb4e7e 100644 --- a/Scenes/Spawnables/template_spawnable.tscn +++ b/Scenes/Spawnables/template_spawnable.tscn @@ -150,7 +150,7 @@ animations = [{ "duration": 1.0, "texture": SubResource("AtlasTexture_bxitd") }], -"loop": false, +"loop": true, "name": &"attack", "speed": 12.0 }, { @@ -185,7 +185,7 @@ animations = [{ "duration": 1.0, "texture": SubResource("AtlasTexture_7bunh") }], -"loop": false, +"loop": true, "name": &"death", "speed": 12.0 }, { @@ -234,6 +234,7 @@ script = ExtResource("1_rkej7") [node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."] sprite_frames = SubResource("SpriteFrames_k6v1d") +frame_progress = 0.107531 [node name="BodyCollision" type="CollisionShape2D" parent="."] rotation = 1.5708 diff --git a/Scripts/start_menu.gd b/Scripts/start_menu.gd index d4a50e5..cee2b5b 100644 --- a/Scripts/start_menu.gd +++ b/Scripts/start_menu.gd @@ -12,7 +12,7 @@ func _process(delta): func _on_start_button_pressed(): - get_tree().change_scene_to_file("res://Scenes/Levels/level1.tscn") + get_tree().change_scene_to_file("res://Scenes/Levels/level_1.tscn") func _on_quit_button_pressed():