(client) feat:实现摄像机跟踪与移动,实现任意位置生成实体,实现更安全的资源加载方式(指定unity内部加载资源) (#42)
Co-authored-by: zzdxxz <2079238449@qq.com> Co-committed-by: zzdxxz <2079238449@qq.com>
@ -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>
|
||||
<texturePath>res: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>res:Character\Test</texturePath>
|
||||
<drawingOrder_down>
|
||||
<node name="Body"/>
|
||||
</drawingOrder_down>
|
||||
</drawingOrder>
|
||||
<behaviorTree>
|
||||
@ -24,4 +40,46 @@
|
||||
</behaviorTree>
|
||||
</CharacterDef>
|
||||
|
||||
<CharacterDef>
|
||||
<defName>HighSpeed</defName>
|
||||
<label>跑得快</label>
|
||||
<description>超高速度,只要跑的够快,摄像机也追不上</description>
|
||||
<attributes>
|
||||
<health>100</health>
|
||||
<moveSpeed>20</moveSpeed>
|
||||
</attributes>
|
||||
<affiliation>player</affiliation>
|
||||
<drawingOrder>
|
||||
<texturePath>res: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>
|
@ -8,7 +8,7 @@
|
||||
<!-- <weapon>Claw</weapon> -->
|
||||
<behaviorTree>
|
||||
<!-- 如果名字叫做cxk -->
|
||||
<Node className="ConditionalAI" condition="entity.name=='cxk'">
|
||||
<Node className="ConditionalAI" value="entity.name=='cxk'">
|
||||
<!-- 顺序执行 -->
|
||||
<Node className="SequentialAI">
|
||||
<!-- 追踪玩家 -->
|
||||
|
Before Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 33 KiB |
Before Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 34 KiB |
Before Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 36 KiB |
Before Width: | Height: | Size: 44 KiB |
Before Width: | Height: | Size: 37 KiB |
Before Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 40 KiB |
Before Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 6.9 KiB |
Before Width: | Height: | Size: 8.0 KiB |
Before Width: | Height: | Size: 8.4 KiB |
Before Width: | Height: | Size: 8.4 KiB |
Before Width: | Height: | Size: 6.6 KiB |
Before Width: | Height: | Size: 8.3 KiB |
Before Width: | Height: | Size: 6.4 KiB |