Enemy information

This commit is contained in:
Marco 2025-03-20 11:34:48 +01:00
commit b9b8834bc2
11 changed files with 118 additions and 61 deletions

View file

@ -1,15 +1,17 @@
using System.Collections.Generic;
using Cirno.Scripts;
using Cirno.Scripts.Components.Actors;
using Cirno.Scripts.Resources;
using Godot;
public partial class Actor : CharacterBody2D
{
[Export]
public float MovementSpeed { get; private set; } = 20f;
public EnemyResource EnemyData { get; private set; }
[Export]
public float Health { get; private set; } = 4f;
public float MovementSpeed => EnemyData.MovementSpeed;
public float Health => EnemyData.MaxHealth;
[ExportCategory("Defeat Script")]
[Export] public Node2D DefeatScript { get; set; }