worldobjects.xml

来自「说明如何使用托管 Direct3D Mobile 创建一个简单的二维游戏。」· XML 代码 · 共 1,120 行 · 第 1/3 页

XML
1,120
字号
    <WalkBoundsRadius>15</WalkBoundsRadius>
    <AttackAnimationRate>10</AttackAnimationRate>
    <AttackStartCell>4</AttackStartCell>
    <AttackEndCell>7</AttackEndCell>
    <AttackBoundsX>0</AttackBoundsX>
    <AttackBoundsY>0</AttackBoundsY>
    <AttackBoundsRadius>15</AttackBoundsRadius>
    <DuckAnimationRate>10</DuckAnimationRate>
    <DuckStartCell>0</DuckStartCell>
    <DuckEndCell>3</DuckEndCell>
    <DuckBoundsX>0</DuckBoundsX>
    <DuckBoundsY>0</DuckBoundsY>
    <DuckBoundsRadius>15</DuckBoundsRadius>
    <Shot1AnimationId>5</Shot1AnimationId>
    <Shot1Frame>3</Shot1Frame>
    <Shot1XOffset>-20</Shot1XOffset>
    <Shot1YOffset>2</Shot1YOffset>
    <Shot1VelocityX>60</Shot1VelocityX>
    <Shot1VelocityY>0</Shot1VelocityY>
    <Shot1AnimationRate>10</Shot1AnimationRate>
    <Shot1Radius>5</Shot1Radius>
    <Shot1Transparency>true</Shot1Transparency>
    <Shot1ApplyGravity>true</Shot1ApplyGravity>
    <Shot1AudioId>1</Shot1AudioId>
    <Transparency>true</Transparency>
    <ActivateDistance>350</ActivateDistance>
    <Collidable>true</Collidable>
</Instance>

<Instance>
    <X>1500</X>
    <Y>110</Y>
    <AIId>2</AIId>
    <AnimationId>1</AnimationId>
    <DeathAnimationRate>10</DeathAnimationRate>
    <DeathStartCell>8</DeathStartCell>
    <DeathEndCell>11</DeathEndCell>
    <WalkAnimationRate>10</WalkAnimationRate>
    <WalkStartCell>0</WalkStartCell>
    <WalkEndCell>3</WalkEndCell>
    <WalkBoundsX>0</WalkBoundsX>
    <WalkBoundsY>0</WalkBoundsY>
    <WalkBoundsRadius>15</WalkBoundsRadius>
    <AttackAnimationRate>10</AttackAnimationRate>
    <AttackStartCell>4</AttackStartCell>
    <AttackEndCell>7</AttackEndCell>
    <AttackBoundsX>0</AttackBoundsX>
    <AttackBoundsY>0</AttackBoundsY>
    <AttackBoundsRadius>15</AttackBoundsRadius>
    <DuckAnimationRate>10</DuckAnimationRate>
    <DuckStartCell>0</DuckStartCell>
    <DuckEndCell>3</DuckEndCell>
    <DuckBoundsX>0</DuckBoundsX>
    <DuckBoundsY>0</DuckBoundsY>
    <DuckBoundsRadius>15</DuckBoundsRadius>
    <Shot1AnimationId>5</Shot1AnimationId>
    <Shot1Frame>3</Shot1Frame>
    <Shot1XOffset>-20</Shot1XOffset>
    <Shot1YOffset>2</Shot1YOffset>
    <Shot1VelocityX>60</Shot1VelocityX>
    <Shot1VelocityY>0</Shot1VelocityY>
    <Shot1AnimationRate>10</Shot1AnimationRate>
    <Shot1Radius>5</Shot1Radius>
    <Shot1Transparency>true</Shot1Transparency>
    <Shot1ApplyGravity>true</Shot1ApplyGravity>
    <Shot1AudioId>1</Shot1AudioId>
    <Transparency>true</Transparency>
    <ActivateDistance>350</ActivateDistance>
    <Collidable>true</Collidable>
</Instance>

<Instance>
    <X>1550</X>
    <Y>160</Y>
    <AIId>2</AIId>
    <AnimationId>1</AnimationId>
    <DeathAnimationRate>10</DeathAnimationRate>
    <DeathStartCell>8</DeathStartCell>
    <DeathEndCell>11</DeathEndCell>
    <WalkAnimationRate>10</WalkAnimationRate>
    <WalkStartCell>0</WalkStartCell>
    <WalkEndCell>3</WalkEndCell>
    <WalkBoundsX>0</WalkBoundsX>
    <WalkBoundsY>0</WalkBoundsY>
    <WalkBoundsRadius>15</WalkBoundsRadius>
    <AttackAnimationRate>10</AttackAnimationRate>
    <AttackStartCell>4</AttackStartCell>
    <AttackEndCell>7</AttackEndCell>
    <AttackBoundsX>0</AttackBoundsX>
    <AttackBoundsY>0</AttackBoundsY>
    <AttackBoundsRadius>15</AttackBoundsRadius>
    <DuckAnimationRate>10</DuckAnimationRate>
    <DuckStartCell>0</DuckStartCell>
    <DuckEndCell>3</DuckEndCell>
    <DuckBoundsX>0</DuckBoundsX>
    <DuckBoundsY>0</DuckBoundsY>
    <DuckBoundsRadius>15</DuckBoundsRadius>
    <Shot1AnimationId>5</Shot1AnimationId>
    <Shot1Frame>3</Shot1Frame>
    <Shot1XOffset>-20</Shot1XOffset>
    <Shot1YOffset>2</Shot1YOffset>
    <Shot1VelocityX>60</Shot1VelocityX>
    <Shot1VelocityY>0</Shot1VelocityY>
    <Shot1AnimationRate>10</Shot1AnimationRate>
    <Shot1Radius>5</Shot1Radius>
    <Shot1Transparency>true</Shot1Transparency>
    <Shot1ApplyGravity>true</Shot1ApplyGravity>
    <Shot1AudioId>1</Shot1AudioId>
    <Transparency>true</Transparency>
    <ActivateDistance>350</ActivateDistance>
    <Collidable>true</Collidable>
</Instance>

<Instance>
    <X>1650</X>
    <Y>60</Y>
    <AIId>2</AIId>
    <AnimationId>1</AnimationId>
    <DeathAnimationRate>10</DeathAnimationRate>
    <DeathStartCell>8</DeathStartCell>
    <DeathEndCell>11</DeathEndCell>
    <WalkAnimationRate>10</WalkAnimationRate>
    <WalkStartCell>0</WalkStartCell>
    <WalkEndCell>3</WalkEndCell>
    <WalkBoundsX>0</WalkBoundsX>
    <WalkBoundsY>0</WalkBoundsY>
    <WalkBoundsRadius>15</WalkBoundsRadius>
    <AttackAnimationRate>10</AttackAnimationRate>
    <AttackStartCell>4</AttackStartCell>
    <AttackEndCell>7</AttackEndCell>
    <AttackBoundsX>0</AttackBoundsX>
    <AttackBoundsY>0</AttackBoundsY>
    <AttackBoundsRadius>15</AttackBoundsRadius>
    <DuckAnimationRate>10</DuckAnimationRate>
    <DuckStartCell>0</DuckStartCell>
    <DuckEndCell>3</DuckEndCell>
    <DuckBoundsX>0</DuckBoundsX>
    <DuckBoundsY>0</DuckBoundsY>
    <DuckBoundsRadius>15</DuckBoundsRadius>
    <Shot1AnimationId>5</Shot1AnimationId>
    <Shot1Frame>3</Shot1Frame>
    <Shot1XOffset>-20</Shot1XOffset>
    <Shot1YOffset>2</Shot1YOffset>
    <Shot1VelocityX>60</Shot1VelocityX>
    <Shot1VelocityY>0</Shot1VelocityY>
    <Shot1AnimationRate>10</Shot1AnimationRate>
    <Shot1Radius>5</Shot1Radius>
    <Shot1Transparency>true</Shot1Transparency>
    <Shot1ApplyGravity>true</Shot1ApplyGravity>
    <Shot1AudioId>1</Shot1AudioId>
    <Transparency>true</Transparency>
    <ActivateDistance>350</ActivateDistance>
    <Collidable>true</Collidable>
</Instance>

<Instance>
    <X>1700</X>
    <Y>110</Y>
    <AIId>2</AIId>
    <AnimationId>1</AnimationId>
    <DeathAnimationRate>10</DeathAnimationRate>
    <DeathStartCell>8</DeathStartCell>
    <DeathEndCell>11</DeathEndCell>
    <WalkAnimationRate>10</WalkAnimationRate>
    <WalkStartCell>0</WalkStartCell>
    <WalkEndCell>3</WalkEndCell>
    <WalkBoundsX>0</WalkBoundsX>
    <WalkBoundsY>0</WalkBoundsY>
    <WalkBoundsRadius>15</WalkBoundsRadius>
    <AttackAnimationRate>10</AttackAnimationRate>
    <AttackStartCell>4</AttackStartCell>
    <AttackEndCell>7</AttackEndCell>
    <AttackBoundsX>0</AttackBoundsX>
    <AttackBoundsY>0</AttackBoundsY>
    <AttackBoundsRadius>15</AttackBoundsRadius>
    <DuckAnimationRate>10</DuckAnimationRate>
    <DuckStartCell>0</DuckStartCell>
    <DuckEndCell>3</DuckEndCell>
    <DuckBoundsX>0</DuckBoundsX>
    <DuckBoundsY>0</DuckBoundsY>
    <DuckBoundsRadius>15</DuckBoundsRadius>
    <Shot1AnimationId>5</Shot1AnimationId>
    <Shot1Frame>3</Shot1Frame>
    <Shot1XOffset>-20</Shot1XOffset>
    <Shot1YOffset>2</Shot1YOffset>
    <Shot1VelocityX>60</Shot1VelocityX>
    <Shot1VelocityY>0</Shot1VelocityY>
    <Shot1AnimationRate>10</Shot1AnimationRate>
    <Shot1Radius>5</Shot1Radius>
    <Shot1Transparency>true</Shot1Transparency>
    <Shot1ApplyGravity>true</Shot1ApplyGravity>
    <Shot1AudioId>1</Shot1AudioId>
    <Transparency>true</Transparency>
    <ActivateDistance>350</ActivateDistance>
    <Collidable>true</Collidable>
</Instance>

<Instance>
    <X>1750</X>
    <Y>160</Y>
    <AIId>2</AIId>
    <AnimationId>1</AnimationId>
    <DeathAnimationRate>10</DeathAnimationRate>
    <DeathStartCell>8</DeathStartCell>
    <DeathEndCell>11</DeathEndCell>
    <WalkAnimationRate>10</WalkAnimationRate>
    <WalkStartCell>0</WalkStartCell>
    <WalkEndCell>3</WalkEndCell>
    <WalkBoundsX>0</WalkBoundsX>
    <WalkBoundsY>0</WalkBoundsY>
    <WalkBoundsRadius>15</WalkBoundsRadius>
    <AttackAnimationRate>10</AttackAnimationRate>
    <AttackStartCell>4</AttackStartCell>
    <AttackEndCell>7</AttackEndCell>
    <AttackBoundsX>0</AttackBoundsX>
    <AttackBoundsY>0</AttackBoundsY>
    <AttackBoundsRadius>15</AttackBoundsRadius>
    <DuckAnimationRate>10</DuckAnimationRate>
    <DuckStartCell>0</DuckStartCell>
    <DuckEndCell>3</DuckEndCell>
    <DuckBoundsX>0</DuckBoundsX>
    <DuckBoundsY>0</DuckBoundsY>
    <DuckBoundsRadius>15</DuckBoundsRadius>
    <Shot1AnimationId>5</Shot1AnimationId>
    <Shot1Frame>3</Shot1Frame>
    <Shot1XOffset>-20</Shot1XOffset>
    <Shot1YOffset>2</Shot1YOffset>
    <Shot1VelocityX>60</Shot1VelocityX>
    <Shot1VelocityY>0</Shot1VelocityY>
    <Shot1AnimationRate>10</Shot1AnimationRate>
    <Shot1Radius>5</Shot1Radius>
    <Shot1Transparency>true</Shot1Transparency>
    <Shot1ApplyGravity>true</Shot1ApplyGravity>
    <Shot1AudioId>1</Shot1AudioId>
    <Transparency>true</Transparency>
    <ActivateDistance>350</ActivateDistance>
    <Collidable>true</Collidable>
</Instance>

<Instance>
    <X>1900</X>
    <Y>175</Y>
    <AIId>3</AIId>
    <AnimationId>2</AnimationId>
    <DeathAnimationRate>8</DeathAnimationRate>
    <DeathStartCell>20</DeathStartCell>
    <DeathEndCell>27</DeathEndCell>
    <WalkAnimationRate>10</WalkAnimationRate>
    <WalkStartCell>0</WalkStartCell>
    <WalkEndCell>9</WalkEndCell>
    <WalkBoundsX>0</WalkBoundsX>
    <WalkBoundsY>0</WalkBoundsY>
    <WalkBoundsRadius>25</WalkBoundsRadius>
    <AttackAnimationRate>8</AttackAnimationRate>
    <AttackStartCell>10</AttackStartCell>
    <AttackEndCell>13</AttackEndCell>
    <AttackBoundsX>0</AttackBoundsX>
    <AttackBoundsY>0</AttackBoundsY>
    <AttackBoundsRadius>15</AttackBoundsRadius>
    <DuckAnimationRate>12</DuckAnimationRate>
    <DuckStartCell>15</DuckStartCell>
    <DuckEndCell>19</DuckEndCell>
    <DuckBoundsX>0</DuckBoundsX>
    <DuckBoundsY>25</DuckBoundsY>
    <DuckBoundsRadius>20</DuckBoundsRadius>
    <Transparency>true</Transparency>
    <ActivateDistance>250</ActivateDistance>
    <Collidable>true</Collidable>
    <Shot1AnimationId>4</Shot1AnimationId>
    <Shot1Frame>1</Shot1Frame>
    <Shot1XOffset>21</Shot1XOffset>
    <Shot1YOffset>2</Shot1YOffset>
    <Shot1VelocityX>100</Shot1VelocityX>
    <Shot1VelocityY>0</Shot1VelocityY>
    <Shot1AnimationRate>10</Shot1AnimationRate>
    <Shot1Radius>5</Shot1Radius>
    <Shot1Transparency>true</Shot1Transparency>
    <Shot1ApplyGravity>false</Shot1ApplyGravity>
    <Shot1AudioId>2</Shot1AudioId>
    <Shot2AnimationId>4</Shot2AnimationId>
    <Shot2Frame>2</Shot2Frame>
    <Shot2XOffset>38</Shot2XOffset>
    <Shot2YOffset>-10</Shot2YOffset>
    <Shot2VelocityX>100</Shot2VelocityX>
    <Shot2VelocityY>0</Shot2VelocityY>
    <Shot2AnimationRate>10</Shot2AnimationRate>
    <Shot2Radius>5</Shot2Radius>
    <Shot2Transparency>true</Shot2Transparency>
    <Shot2ApplyGravity>false</Shot2ApplyGravity>
    <Shot2AudioId>2</Shot2AudioId>
</Instance>

<Instance>
    <X>2000</X>
    <Y>175</Y>
    <AIId>3</AIId>
    <AnimationId>2</AnimationId>
    <DeathAnimationRate>8</DeathAnimationRate>
    <DeathStartCell>20</DeathStartCell>
    <DeathEndCell>27</DeathEndCell>
    <WalkAnimationRate>10</WalkAnimationRate>
    <WalkStartCell>0</WalkStartCell>
    <WalkEndCell>9</WalkEndCell>
    <WalkBoundsX>0</WalkBoundsX>
    <WalkBoundsY>0</WalkBoundsY>
    <WalkBoundsRadius>25</WalkBoundsRadius>
    <AttackAnimationRate>8</AttackAnimationRate>
    <AttackStartCell>10</AttackStartCell>
    <AttackEndCell>13</AttackEndCell>
    <AttackBoundsX>0</AttackBoundsX>
    <AttackBoundsY>0</AttackBoundsY>
    <AttackBoundsRadius>15</AttackBoundsRadius>
    <DuckAnimationRate>12</DuckAnimationRate>
    <DuckStartCell>15</DuckStartCell>
    <DuckEndCell>19</DuckEndCell>
    <DuckBoundsX>0</DuckBoundsX>
    <DuckBoundsY>25</DuckBoundsY>
    <DuckBoundsRadius>20</DuckBoundsRadius>
    <Transparency>true</Transparency>
    <ActivateDistance>250</ActivateDistance>
    <Collidable>true</Collidable>
    <Shot1AnimationId>4</Shot1AnimationId>
    <Shot1Frame>1</Shot1Frame>
    <Shot1XOffset>21</Shot1XOffset>
    <Shot1YOffset>2</Shot1YOffset>
    <Shot1VelocityX>100</Shot1VelocityX>
    <Shot1VelocityY>0</Shot1VelocityY>
    <Shot1AnimationRate>10</Shot1AnimationRate>
    <Shot1Radius>5</Shot1Radius>
    <Shot1Transparency>true</Shot1Transparency>
    <Shot1ApplyGravity>false</Shot1ApplyGravity>
    <Shot1AudioId>2</Shot1AudioId>
    <Shot2AnimationId>4</Shot2AnimationId>
    <Shot2Frame>2</Shot2Frame>
    <Shot2XOffset>38</Shot2XOffset>
    <Shot2YOffset>-10</Shot2YOffset>
    <Shot2VelocityX>100</Shot2VelocityX>
    <Shot2VelocityY>0</Shot2VelocityY>
    <Shot2AnimationRate>10</Shot2AnimationRate>
    <Shot2Radius>5</Shot2Radius>
    <Shot2Transparency>true</Shot2Transparency>
    <Shot2ApplyGravity>false</Shot2ApplyGravity>
    <Shot2AudioId>2</Shot2AudioId>
</Instance>

<Instance>
    <X>2100</X>
    <Y>60</Y>
    <AIId>2</AIId>
    <AnimationId>1</AnimationId>
    <DeathAnimationRate>10</DeathAnimationRate>
    <DeathStartCell>8</DeathStartCell>
    <DeathEndCell>11</DeathEndCell>
    <WalkAnimationRate>10</WalkAnimationRate>
    <WalkStartCell>0</WalkStartCell>
    <WalkEndCell>3</WalkEndCell>
    <WalkBoundsX>0</WalkBoundsX>
    <WalkBoundsY>0</WalkBoundsY>
    <WalkBoundsRadius>15</WalkBoundsRadius>
    <AttackAnimationRate>10</AttackAnimationRate>
    <AttackStartCell>4</AttackStartCell>
    <AttackEndCell>7</AttackEndCell>
    <AttackBoundsX>0</AttackBoundsX>
    <AttackBoundsY>0</AttackBoundsY>
    <AttackBoundsRadius>15</AttackBoundsRadius>
    <DuckAnimationRate>10</DuckAnimationRate>
    <DuckStartCell>0</DuckStartCell>
    <DuckEndCell>3</DuckEndCell>
    <DuckBoundsX>0</DuckBoundsX>
    <DuckBoundsY>0</DuckBoundsY>
    <DuckBoundsRadius>15</DuckBoundsRadius>
    <Shot1AnimationId>5</Shot1AnimationId>
    <Shot1Frame>3</Shot1Frame>
    <Shot1XOffset>-20</Shot1XOffset>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?