diff options
| author | Matheus <matheus.guedes.mg.m@gmail.com> | 2025-08-28 21:08:02 -0300 |
|---|---|---|
| committer | Matheus <matheus.guedes.mg.m@gmail.com> | 2025-08-28 21:08:59 -0300 |
| commit | 34e0c53be17e6b503dff9d1e3a0b8aa299706bf7 (patch) | |
| tree | a14f7d9a52e3adf0c927ed462c8a3dae0cb09e90 | |
| parent | 7f5681b4e78982b08bf91913b2d5fa39923945f9 (diff) | |
Adicionado morcegão
| -rw-r--r-- | assets/definitions/actor/morcegao.tres | 20 | ||||
| -rw-r--r-- | scripts/map/DungeonGenerator.cs | 3 |
2 files changed, 22 insertions, 1 deletions
diff --git a/assets/definitions/actor/morcegao.tres b/assets/definitions/actor/morcegao.tres new file mode 100644 index 0000000..d00b318 --- /dev/null +++ b/assets/definitions/actor/morcegao.tres @@ -0,0 +1,20 @@ +[gd_resource type="Resource" script_class="EnemyDefinition" load_steps=4 format=3 uid="uid://cj0kq4sfft8gh"] + +[ext_resource type="Texture2D" uid="uid://w0808ug4al66" path="res://assets/sprites/generic_grave.png" id="1_hdleo"] +[ext_resource type="Script" uid="uid://dkfdm2m2scyks" path="res://scripts/actors/EnemyDefinition.cs" id="1_m2lyk"] +[ext_resource type="Texture2D" uid="uid://dwky8qc2y602k" path="res://assets/sprites/character.png" id="3_601km"] + +[resource] +script = ExtResource("1_m2lyk") +AI = 1 +name = "Morcegão" +texture = ExtResource("3_601km") +deathTexture = ExtResource("1_hdleo") +blocksMovement = true +Speed = 10 +Hp = 10 +Mp = 0 +Atk = 5 +Def = 1 +Men = 0 +metadata/_custom_type_script = "uid://dkfdm2m2scyks" diff --git a/scripts/map/DungeonGenerator.cs b/scripts/map/DungeonGenerator.cs index 1da7e16..5f319c4 100644 --- a/scripts/map/DungeonGenerator.cs +++ b/scripts/map/DungeonGenerator.cs @@ -10,7 +10,8 @@ public partial class DungeonGenerator : Node /// Coleção de todos os inimigos que o gerador tem acesso. /// </summary> private static readonly Godot.Collections.Array<EnemyDefinition> enemies = [ - GD.Load<EnemyDefinition>("res://assets/definitions/actor/Skeleton.tres") + GD.Load<EnemyDefinition>("res://assets/definitions/actor/Skeleton.tres"), + GD.Load<EnemyDefinition>("res://assets/definitions/actor/morcegao.tres") ]; /// <summary> |
