(client) feat:实现摄像机跟踪,柏林噪声改为单例,角色渲染树支持指定像素密度

chore:将UI的Tick进行了显示时显式添加并作为预制体
This commit is contained in:
m0_75251201
2025-08-05 14:54:30 +08:00
parent 3c9be3a30c
commit 6a222d82b2
29 changed files with 2217 additions and 3262 deletions

View File

@ -1,22 +1,38 @@
<?xml version="1.0" encoding="utf-8"?>
<Define>
<AttributesDef>
<defName>TestCharacter</defName>
<health>100</health>
<moveSpeed>2</moveSpeed>
</AttributesDef>
<CharacterDef>
<defName>testPawn</defName>
<label>测试小人</label>
<description>用于测试功能的角色</description>
<attributes>TestCharacter</attributes>
<attributes>
<health>100</health>
<moveSpeed>2</moveSpeed>
</attributes>
<affiliation>player</affiliation>
<drawingOrder>
<texturePath>Resources\Character\Test</texturePath>
<drawingOrder_down>
<node name="Body"/>
<node name="Body" type="Animation" FPS="0.5"/>
</drawingOrder_down>
</drawingOrder>
<behaviorTree>
<Node className="RandomWander"/>
</behaviorTree>
</CharacterDef>
<CharacterDef>
<defName>HighHP</defName>
<label>耐肘王</label>
<description>超高的血条,有了耐肘王,一个人就有一百个人的力量了!</description>
<attributes>
<health>10000</health>
<moveSpeed>2</moveSpeed>
</attributes>
<affiliation>player</affiliation>
<drawingOrder>
<texturePath>Resources\Character\Test</texturePath>
<drawingOrder_down>
<node name="Body"/>
</drawingOrder_down>
</drawingOrder>
<behaviorTree>
@ -24,4 +40,45 @@
</behaviorTree>
</CharacterDef>
<CharacterDef>
<defName>HighSpeed</defName>
<label>跑得快</label>
<description>超高速度,只要跑的够快,摄像机也追不上</description>
<attributes>
<health>100</health>
<moveSpeed>20</moveSpeed>
</attributes>
<affiliation>player</affiliation>
<drawingOrder>
<texturePath>Resources\Character\HighSpeed</texturePath>
<pixelsPerUnit>100</pixelsPerUnit>
<drawingOrder_down>
<node name="Body"/>
</drawingOrder_down>
</drawingOrder>
<behaviorTree>
<Node className="Idel"/>
</behaviorTree>
</CharacterDef>
<CharacterDef>
<defName>powerMan</defName>
<label>超人</label>
<description>跑到又快又难肘</description>
<attributes>
<health>10000</health>
<moveSpeed>20</moveSpeed>
</attributes>
<affiliation>player</affiliation>
<drawingOrder>
<texturePath>Resources\Character\Test</texturePath>
<drawingOrder_down>
<node name="Body" />
</drawingOrder_down>
</drawingOrder>
<behaviorTree>
<Node className="Idel"/>
</behaviorTree>
</CharacterDef>
</Define>

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB