feat: 1. 添加武器基础脚本

2. 添加武器基本resources
3. 武器碰撞 RangeArea 进入和退出检测
4. 添加 Hitbox 进行武器碰撞敌人区域(只是添加了,功能还没实现)
5. 武器冷却时间 weapon_base / CooldownTimer
This commit is contained in:
luke358
2026-05-19 00:22:38 +08:00
parent 883a9b4c05
commit 7c7b2e9420
19 changed files with 263 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
extends Resource
class_name ItemBase
enum ItemType {
WEAPON,
UPGRADE,
PASSIVE
}
@export var item_name: String
@export var item_icon: Texture2D
@export var item_tier: Global.UpgradeTier
@export var item_type: ItemType
@export var item_cost: int
func get_description() -> String:
return ""