feat: 1. 添加武器基础脚本
2. 添加武器基本resources 3. 武器碰撞 RangeArea 进入和退出检测 4. 添加 Hitbox 进行武器碰撞敌人区域(只是添加了,功能还没实现) 5. 武器冷却时间 weapon_base / CooldownTimer
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
[gd_scene format=3 uid="uid://d1igydtpm3sq8"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://dcc7rsdy4j8v6" path="res://scenes/weapons/weapon_base.tscn" id="1_soyvn"]
|
||||
[ext_resource type="PackedScene" uid="uid://c0fyx8gj5uexl" path="res://scenes/components/hitbox_component.tscn" id="2_gq287"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_gq287"]
|
||||
size = Vector2(52, 42)
|
||||
|
||||
[node name="WeaponPunch" unique_id=63743776 instance=ExtResource("1_soyvn")]
|
||||
|
||||
[node name="Sprite2D" parent="." index="0" unique_id=1011668514]
|
||||
position = Vector2(21, 1)
|
||||
|
||||
[node name="HitboxComponent" parent="Sprite2D" index="0" unique_id=151235566 instance=ExtResource("2_gq287")]
|
||||
scale = Vector2(2, 2)
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Sprite2D/HitboxComponent" index="0" unique_id=1064980236]
|
||||
z_index = 1
|
||||
shape = SubResource("RectangleShape2D_gq287")
|
||||
debug_color = Color(0.9556908, 0.042769283, 0.5218647, 0.41960785)
|
||||
Reference in New Issue
Block a user