💄 Optimize stuff
This commit is contained in:
@@ -13,7 +13,7 @@ public abstract partial class BaseEnemy : CharacterBody2D
|
||||
[Export] public float DetectionRadius = 300.0f;
|
||||
[Export] public float AttackRadius = 80.0f;
|
||||
[Export] public int Damage = 10;
|
||||
[Export] public float AttackCooldown = 1.0f;
|
||||
[Export] public float AttackCooldown = 3.0f;
|
||||
[Export] public int MaxHealth = 100;
|
||||
[Export] public bool ShowDamageNumbers = true;
|
||||
|
||||
|
@@ -12,7 +12,7 @@ public partial class EnemyPortalTile : BaseTile
|
||||
[Export] public bool Active = true;
|
||||
|
||||
private Timer _spawnTimer;
|
||||
private int _currentEnemyCount = 0;
|
||||
private int _currentEnemyCount;
|
||||
|
||||
public override void _Ready()
|
||||
{
|
||||
@@ -38,7 +38,7 @@ public partial class EnemyPortalTile : BaseTile
|
||||
Texture = sprite.Texture,
|
||||
Scale = sprite.Scale * 1.05f, // Slightly larger than the original
|
||||
Modulate = new Color(0, 0, 0, 0.5f), // Slightly more transparent
|
||||
Position = new Vector2(0, 12), // Closer to the sprite (reduced from 30)
|
||||
Position = new Vector2(0, 6), // Closer to the sprite (reduced from 30)
|
||||
ZIndex = -1
|
||||
};
|
||||
AddChild(shadow);
|
||||
|
Reference in New Issue
Block a user