mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-25 21:12:29 +08:00
feat: Add weapon system and attack functionality to Rooster character
- Introduced a weapons node in EntityBase for weapon management. - Updated Rooster to include cooldown for attacks and weapon anchoring. - Implemented attack method in Rooster to generate bullets. - Enhanced BulletBase with life distance and lifetime properties. - Created Chick character with animations and integrated into the world. - Updated PurpleCrystal bullet behavior to move forward based on rotation. - Refactored EntityBase to use a fields dictionary for attributes. - Added FieldStore for managing entity-related constants. - Adjusted GameRule to include bullet speed multiplier.
This commit is contained in:
+14
-1
@@ -1,10 +1,23 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://dmxi1ikn6avig"]
|
||||
[gd_scene load_steps=4 format=3 uid="uid://dmxi1ikn6avig"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://bm7ymrri6pykb" path="res://components/Characters/Rooster.tscn" id="1_7jr0n"]
|
||||
[ext_resource type="Script" path="res://scripts/Tools/WorldTool.gd" id="1_ei0ch"]
|
||||
[ext_resource type="PackedScene" uid="uid://b0ncrvm8u4pox" path="res://components/Characters/Chick.tscn" id="3_jho84"]
|
||||
|
||||
[node name="world" type="Node2D"]
|
||||
script = ExtResource("1_ei0ch")
|
||||
|
||||
[node name="rooster" parent="." groups=["players"] instance=ExtResource("1_7jr0n")]
|
||||
position = Vector2(394, 274)
|
||||
|
||||
[node name="chick" parent="." groups=["mobs"] instance=ExtResource("3_jho84")]
|
||||
position = Vector2(644, 391)
|
||||
|
||||
[node name="Chick" parent="." instance=ExtResource("3_jho84")]
|
||||
position = Vector2(366, 547)
|
||||
|
||||
[node name="Chick2" parent="." instance=ExtResource("3_jho84")]
|
||||
position = Vector2(686, 551)
|
||||
|
||||
[node name="Chick3" parent="." instance=ExtResource("3_jho84")]
|
||||
position = Vector2(760, 200)
|
||||
|
||||
Reference in New Issue
Block a user