(client)chore:修改了摄像机的跟踪方式,摄像机控制不再使用单例
This commit is contained in:
@ -1,5 +1,20 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Define>
|
||||
|
||||
<ImageDef>
|
||||
<defName>TestGunItem</defName>
|
||||
<path>Resources\Item\TestGun.png</path>
|
||||
</ImageDef>
|
||||
|
||||
<ImageDef>
|
||||
<defName>TestGun</defName>
|
||||
<path>Resources\Item\TestGunUse.png</path>
|
||||
</ImageDef>
|
||||
<ImageDef>
|
||||
<defName>yellowBullet</defName>
|
||||
<path>Resources\Item\YellowBullet_down.png</path>
|
||||
</ImageDef>
|
||||
|
||||
<AttributesDef>
|
||||
<defName>TestGun</defName>
|
||||
<attack>10</attack>
|
||||
@ -26,26 +41,23 @@
|
||||
<moveSpeed>20</moveSpeed>
|
||||
</attributes>
|
||||
<drawingOrder>
|
||||
<texturePath>Resources\Item</texturePath>
|
||||
<pixelsPerUnit>20</pixelsPerUnit>
|
||||
<drawingOrder_down>
|
||||
<node name="YellowBullet"/>
|
||||
</drawingOrder_down>
|
||||
<idle_down>
|
||||
<textures>
|
||||
<li>yellowBullet</li>
|
||||
</textures>
|
||||
</idle_down>
|
||||
<walk_down>
|
||||
<textures>
|
||||
<li>yellowBullet</li>
|
||||
</textures>
|
||||
</walk_down>
|
||||
</drawingOrder>
|
||||
<behaviorTree>
|
||||
<Node className="JobGiver_ContinuousMove"/>
|
||||
</behaviorTree>
|
||||
</BulletDef>
|
||||
|
||||
<ImageDef>
|
||||
<defName>TestGunItem</defName>
|
||||
<path>Resources\Item\TestGun.png</path>
|
||||
</ImageDef>
|
||||
|
||||
<ImageDef>
|
||||
<defName>TestGun</defName>
|
||||
<path>Resources\Item\TestGunUse.png</path>
|
||||
</ImageDef>
|
||||
|
||||
|
||||
|
||||
|
@ -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"/>
|
||||
|
Reference in New Issue
Block a user