(client)chore:修改了摄像机的跟踪方式,摄像机控制不再使用单例

This commit is contained in:
m0_75251201
2025-08-23 16:43:28 +08:00
parent 8916440e7e
commit da93368f02
15 changed files with 1215 additions and 329 deletions

View File

@ -2,11 +2,17 @@
<Define>
<!-- 贴图部分 -->
<ImageDef>
<defName>testPawn</defName>
<defName>testPawnAnimation</defName>
<path>res:Character/Test/Body/idle_down</path>
<wCount>5</wCount>
<hCount>1</hCount>
</ImageDef>
<ImageDef>
<defName>testPawn</defName>
<path>Resources\Character\test.png</path>
<wCount>4</wCount>
<hCount>4</hCount>
</ImageDef>
<!-- 人物定义 -->
<CharacterDef>
@ -19,15 +25,93 @@
</attributes>
<affiliation>player</affiliation>
<drawingOrder>
<idle_down name="Body" FPS="2">
<animationTextures>
<!-- Idle states -->
<idle_up>
<textures>
<li>testPawn_0</li>
<li>testPawn_1</li>
<li>testPawn_2</li>
<li>testPawn_3</li>
</textures>
</idle_up>
<idle_down>
<textures>
<li>testPawn_4</li>
</animationTextures>
</textures>
</idle_down>
<idle_left>
<textures>
<li>testPawn_8</li>
</textures>
</idle_left>
<idle_right>
<textures>
<li>testPawn_12</li>
</textures>
</idle_right>
<!-- Walk states -->
<walk_up>
<textures>
<li>testPawn_1</li>
</textures>
</walk_up>
<walk_down>
<textures>
<li>testPawn_5</li>
</textures>
</walk_down>
<walk_left>
<textures>
<li>testPawn_9</li>
</textures>
</walk_left>
<walk_right>
<textures>
<li>testPawn_13</li>
</textures>
</walk_right>
<!-- Melee Attack states -->
<meleeAttack_up>
<textures>
<li>testPawn_2</li>
</textures>
</meleeAttack_up>
<meleeAttack_down>
<textures>
<li>testPawn_6</li>
</textures>
</meleeAttack_down>
<meleeAttack_left>
<textures>
<li>testPawn_10</li>
</textures>
</meleeAttack_left>
<meleeAttack_right>
<textures>
<li>testPawn_14</li>
</textures>
</meleeAttack_right>
<!-- Ranged Attack states -->
<rangedAttack_up>
<textures>
<li>testPawn_3</li>
</textures>
</rangedAttack_up>
<rangedAttack_down>
<textures>
<li>testPawn_7</li>
</textures>
</rangedAttack_down>
<rangedAttack_left>
<textures>
<li>testPawn_11</li>
</textures>
</rangedAttack_left>
<rangedAttack_right>
<textures>
<li>testPawn_15</li>
</textures>
</rangedAttack_right>
</drawingOrder>
<behaviorTree>
<Node className="JobGiver_RandomWander"/>
@ -44,10 +128,18 @@
</attributes>
<affiliation>player</affiliation>
<drawingOrder>
<texturePath>res:Character\Test</texturePath>
<drawingOrder_down>
<node name="Body"/>
</drawingOrder_down>
<idle_down name="Body" FPS="4">
<textures>
<li>testPawnAnimation_0</li>
<li>testPawnAnimation_1</li>
<li>testPawnAnimation_2</li>
<li>testPawnAnimation_3</li>
<li>testPawnAnimation_4</li>
<li>testPawnAnimation_3</li>
<li>testPawnAnimation_2</li>
<li>testPawnAnimation_1</li>
</textures>
</idle_down>
</drawingOrder>
<behaviorTree>
<Node className="JobGiver_RandomWander"/>
@ -64,11 +156,18 @@
</attributes>
<affiliation>player</affiliation>
<drawingOrder>
<texturePath>res:Character\HighSpeed</texturePath>
<pixelsPerUnit>200</pixelsPerUnit>
<drawingOrder_down>
<node name="Body"/>
</drawingOrder_down>
<idle_down name="Body" FPS="4">
<textures>
<li>testPawnAnimation_0</li>
<li>testPawnAnimation_1</li>
<li>testPawnAnimation_2</li>
<li>testPawnAnimation_3</li>
<li>testPawnAnimation_4</li>
<li>testPawnAnimation_3</li>
<li>testPawnAnimation_2</li>
<li>testPawnAnimation_1</li>
</textures>
</idle_down>
</drawingOrder>
<behaviorTree>
<Node className="JobGiver_Idel"/>
@ -85,11 +184,18 @@
</attributes>
<affiliation>player</affiliation>
<drawingOrder>
<texturePath>res:Character\HighSpeed</texturePath>
<pixelsPerUnit>200</pixelsPerUnit>
<drawingOrder_down>
<node name="Body" />
</drawingOrder_down>
<idle_down name="Body" FPS="4">
<textures>
<li>testPawnAnimation_0</li>
<li>testPawnAnimation_1</li>
<li>testPawnAnimation_2</li>
<li>testPawnAnimation_3</li>
<li>testPawnAnimation_4</li>
<li>testPawnAnimation_3</li>
<li>testPawnAnimation_2</li>
<li>testPawnAnimation_1</li>
</textures>
</idle_down>
</drawingOrder>
<behaviorTree>
<Node className="JobGiver_Idel"/>