(client)feat:实现子弹定义以及生成,实现初始化动画,实现血条 (#43)
Co-authored-by: zzdxxz <2079238449@qq.com> Co-committed-by: zzdxxz <2079238449@qq.com>
This commit is contained in:
13
Client/Data/Core/Define/Building/Wall.xml
Normal file
13
Client/Data/Core/Define/Building/Wall.xml
Normal file
@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Define>
|
||||
<BuildingDef>
|
||||
<defName>ConcreteWall</defName>
|
||||
<label>水泥墙</label>
|
||||
<description>很常见的钢筋混凝土建筑墙壁</description>
|
||||
<attributes>
|
||||
<health>1000</health>
|
||||
</attributes>
|
||||
<affiliation>none</affiliation>
|
||||
<slowDown>1</slowDown>
|
||||
</BuildingDef>
|
||||
</Define>
|
@ -21,12 +21,19 @@
|
||||
|
||||
<BulletDef>
|
||||
<defName>yellowBullet</defName>
|
||||
<moveSpeed>10</moveSpeed>
|
||||
<texture>
|
||||
<path>Resources\Item\YellowBullet.png</path>
|
||||
</texture>
|
||||
<attributes>
|
||||
<health>1</health>
|
||||
<moveSpeed>20</moveSpeed>
|
||||
</attributes>
|
||||
<drawingOrder>
|
||||
<texturePath>Resources\Item</texturePath>
|
||||
<pixelsPerUnit>20</pixelsPerUnit>
|
||||
<drawingOrder_down>
|
||||
<node name="YellowBullet"/>
|
||||
</drawingOrder_down>
|
||||
</drawingOrder>
|
||||
<behaviorTree>
|
||||
<Node className="ContinuousMove"/>
|
||||
<Node className="JobGiver_ContinuousMove"/>
|
||||
</behaviorTree>
|
||||
</BulletDef>
|
||||
|
||||
|
24
Client/Data/Core/Define/Pawn/AffiliationDef.xml
Normal file
24
Client/Data/Core/Define/Pawn/AffiliationDef.xml
Normal file
@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Define>
|
||||
<AffiliationDef>
|
||||
<defName>none</defName>
|
||||
<label>中立阵营</label>
|
||||
<defaultRelation>Neutral</defaultRelation>
|
||||
</AffiliationDef>
|
||||
<AffiliationDef>
|
||||
<defName>player</defName>
|
||||
<label>玩家阵营</label>
|
||||
<defaultRelation>Neutral</defaultRelation>
|
||||
<hostileFactions>
|
||||
<li>monster</li>
|
||||
</hostileFactions>
|
||||
</AffiliationDef>
|
||||
<AffiliationDef>
|
||||
<defName>monster</defName>
|
||||
<label>怪物阵营</label>
|
||||
<defaultRelation>Hostile</defaultRelation>
|
||||
<hostileFactions>
|
||||
<li>player</li>
|
||||
</hostileFactions>
|
||||
</AffiliationDef>
|
||||
</Define>
|
@ -16,7 +16,7 @@
|
||||
</drawingOrder_down>
|
||||
</drawingOrder>
|
||||
<behaviorTree>
|
||||
<Node className="RandomWander"/>
|
||||
<Node className="JobGiver_RandomWander"/>
|
||||
</behaviorTree>
|
||||
</CharacterDef>
|
||||
|
||||
@ -36,7 +36,7 @@
|
||||
</drawingOrder_down>
|
||||
</drawingOrder>
|
||||
<behaviorTree>
|
||||
<Node className="RandomWander"/>
|
||||
<Node className="JobGiver_RandomWander"/>
|
||||
</behaviorTree>
|
||||
</CharacterDef>
|
||||
|
||||
@ -51,13 +51,13 @@
|
||||
<affiliation>player</affiliation>
|
||||
<drawingOrder>
|
||||
<texturePath>res:Character\HighSpeed</texturePath>
|
||||
<pixelsPerUnit>100</pixelsPerUnit>
|
||||
<pixelsPerUnit>200</pixelsPerUnit>
|
||||
<drawingOrder_down>
|
||||
<node name="Body"/>
|
||||
</drawingOrder_down>
|
||||
</drawingOrder>
|
||||
<behaviorTree>
|
||||
<Node className="Idel"/>
|
||||
<Node className="JobGiver_Idel"/>
|
||||
</behaviorTree>
|
||||
</CharacterDef>
|
||||
|
||||
@ -71,14 +71,14 @@
|
||||
</attributes>
|
||||
<affiliation>player</affiliation>
|
||||
<drawingOrder>
|
||||
<texturePath>Resources\Character\Test</texturePath>
|
||||
<texturePath>res:Character\HighSpeed</texturePath>
|
||||
<pixelsPerUnit>200</pixelsPerUnit>
|
||||
<drawingOrder_down>
|
||||
<node name="Body" />
|
||||
</drawingOrder_down>
|
||||
</drawingOrder>
|
||||
<behaviorTree>
|
||||
|
||||
<Node className="Idel"/>
|
||||
<Node className="JobGiver_Idel"/>
|
||||
</behaviorTree>
|
||||
</CharacterDef>
|
||||
|
||||
|
@ -6,20 +6,6 @@
|
||||
<label>测试鸡</label>
|
||||
<aiController>embrace</aiController>
|
||||
<!-- <weapon>Claw</weapon> -->
|
||||
<behaviorTree>
|
||||
<!-- 如果名字叫做cxk -->
|
||||
<Node className="ConditionalAI" value="entity.name=='cxk'">
|
||||
<!-- 顺序执行 -->
|
||||
<Node className="SequentialAI">
|
||||
<!-- 追踪玩家 -->
|
||||
<Node className="TrackPlayer"/>
|
||||
<!-- 随机闲逛 -->
|
||||
<Node className="RandomWander"/>
|
||||
</Node>
|
||||
</Node>
|
||||
<!-- 随机闲逛 -->
|
||||
<Node className="RandomWander"/>
|
||||
</behaviorTree>
|
||||
</MonsterDef>
|
||||
|
||||
|
||||
|
Before Width: | Height: | Size: 137 B After Width: | Height: | Size: 137 B |
Reference in New Issue
Block a user