💄 Optimize stuff

This commit is contained in:
2025-08-31 19:30:16 +08:00
parent f2c243ecf6
commit 2c5e0459ad
3 changed files with 4 additions and 4 deletions

View File

@@ -36,7 +36,7 @@
"reactor": { "reactor": {
"scene": "res://Scenes/Tiles/ReactorTile.tscn", "scene": "res://Scenes/Tiles/ReactorTile.tscn",
"cost": {}, "cost": {},
"durability": 200, "durability": 1000,
"buildTime": 5.0, "buildTime": 5.0,
"allowedRotations": [0], "allowedRotations": [0],
"layer": 1, "layer": 1,

View File

@@ -13,7 +13,7 @@ public abstract partial class BaseEnemy : CharacterBody2D
[Export] public float DetectionRadius = 300.0f; [Export] public float DetectionRadius = 300.0f;
[Export] public float AttackRadius = 80.0f; [Export] public float AttackRadius = 80.0f;
[Export] public int Damage = 10; [Export] public int Damage = 10;
[Export] public float AttackCooldown = 1.0f; [Export] public float AttackCooldown = 3.0f;
[Export] public int MaxHealth = 100; [Export] public int MaxHealth = 100;
[Export] public bool ShowDamageNumbers = true; [Export] public bool ShowDamageNumbers = true;

View File

@@ -12,7 +12,7 @@ public partial class EnemyPortalTile : BaseTile
[Export] public bool Active = true; [Export] public bool Active = true;
private Timer _spawnTimer; private Timer _spawnTimer;
private int _currentEnemyCount = 0; private int _currentEnemyCount;
public override void _Ready() public override void _Ready()
{ {
@@ -38,7 +38,7 @@ public partial class EnemyPortalTile : BaseTile
Texture = sprite.Texture, Texture = sprite.Texture,
Scale = sprite.Scale * 1.05f, // Slightly larger than the original Scale = sprite.Scale * 1.05f, // Slightly larger than the original
Modulate = new Color(0, 0, 0, 0.5f), // Slightly more transparent 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 ZIndex = -1
}; };
AddChild(shadow); AddChild(shadow);