Advertisement
Guest User

Untitled

a guest
Jul 10th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 4.19 KB | None | 0 0
  1. <things version="1">
  2.  
  3.     <template name="Platform">
  4.         <component type="com.pblabs.box2D.Box2DSpatialComponent" name="Platform">
  5.             <spatialManager componentReference="SceneDB" />
  6.             <canRotate>false</canRotate>
  7.             <canSleep>true</canSleep>
  8.             <CanMove>false</CanMove>
  9.             <collidesWithTypes childType="String">
  10.                 <_1>Player</_1>
  11.             </collidesWithTypes>
  12.             <position type="">
  13.                 <x>0</x>
  14.                 <y>0</y>
  15.             </position>
  16.             <size type="">
  17.                 <x>39</x>
  18.                 <y>8</y>
  19.             </size>
  20.             <collisionShapes childType="com.pblabs.box2D.CollisionShape">
  21.                 <_0 type="com.pblabs.box2D.PolygonCollisionShape">
  22.                 <vertices childType="flash.geom.Point">
  23.                   <_0 type="">
  24.                     <x>-1</x>
  25.                     <y>-1</y>
  26.                   </_0>
  27.                   <_1 type="">
  28.                     <x>1</x>
  29.                     <y>-1</y>
  30.                   </_1>
  31.                   <_2 type="">
  32.                     <x>1</x>
  33.                     <y>1</y>
  34.                   </_2>
  35.                   <_3 type="">
  36.                     <x>-1</x>
  37.                     <y>1</y>
  38.                   </_3>
  39.                 </vertices>
  40.             </_0>
  41.             </collisionShapes>
  42.             <collisionType childType="String">
  43.                 <_0>Platform</_0>
  44.                 <_1>Renderable</_1>
  45.             </collisionType>
  46.         </component>
  47.        
  48.         <component type="com.pblabs.rendering2D.SpriteRenderer" name="Render">
  49.             <scene componentReference="SceneDB" />
  50.             <positionProperty>@Platform.position</positionProperty>
  51.             <fileName>assets/images/platform.png</fileName>
  52.         </component>
  53.        
  54.         <component type="be.svenpeeters.aybabtu.components.platform.PlatformComponent" name="PlatformComponent">
  55.         </component>
  56.        
  57.         <component type="be.svenpeeters.aybabtu.components.platform.BehaviourComponent" name="BehaviourComponent">
  58.             <positionProperty>@Platform.position</positionProperty>
  59.             <linearVelReference>@Platform.linearVelocity</linearVelReference>
  60.         </component>
  61.        
  62.     </template>
  63.    
  64.     <entity name="Player">
  65.        
  66.         <component type="com.pblabs.box2D.Box2DSpatialComponent" name="Player">
  67.             <spatialManager componentReference="SceneDB"/>
  68.                 <canRotate>false</canRotate>
  69.                 <canSleep>false</canSleep>
  70.                 <collidesWithTypes childType="String">
  71.                     <_0>Platform</_0>
  72.                 </collidesWithTypes>
  73.                 <size type="">
  74.                 <x>16</x>
  75.                 <y>26</y>
  76.             </size>
  77.                 <position type="">
  78.                 <x>0</x>
  79.                 <y>-50</y>
  80.             </position>
  81.                 <collisionShapes childType="com.pblabs.box2D.CollisionShape">
  82.                 <_0 type="com.pblabs.box2D.PolygonCollisionShape">
  83.                   <vertices childType="flash.geom.Point">
  84.                     <_0 type="">
  85.                       <x>-1</x>
  86.                       <y>-1</y>
  87.                     </_0>
  88.                     <_1 type="">
  89.                       <x>1</x>
  90.                       <y>-1</y>
  91.                     </_1>
  92.                     <_2 type="">
  93.                       <x>1</x>
  94.                       <y>1</y>
  95.                     </_2>
  96.                     <_3 type="">
  97.                       <x>-1</x>
  98.                       <y>1</y>
  99.                     </_3>
  100.                   </vertices>
  101.                 </_0>
  102.                 </collisionShapes>
  103.                 <collisionType childType="String">
  104.                 <_0>Player</_0>
  105.                 <_1>Renderable</_1>
  106.                 </collisionType>       
  107.         </component>
  108.        
  109.         <component type="com.pblabs.rendering2D.SpriteRenderer" name="Render">
  110.             <scene componentReference="SceneDB"/>
  111.             <positionProperty>@Player.position</positionProperty>
  112.             <fileName>assets/images/player.png</fileName>
  113.         </component>
  114.        
  115.         <component type="be.svenpeeters.aybabtu.components.player.PlayerComponent" name="PlayerComponent">
  116.         </component>
  117.        
  118.         <component type="be.svenpeeters.aybabtu.components.player.BehaviourComponent" name="BehaviourComponent">
  119.             <positionProperty>@Player.position</positionProperty>
  120.             <linearVelReference>@Player.position</linearVelReference>
  121.         </component>
  122.        
  123.     </entity>
  124.    
  125.     <entity name="Ground" template="Platform">
  126.         <component type="com.pblabs.box2D.Box2DSpatialComponent" name="Ground">
  127.             <position type="">
  128.                 <x>0</x>
  129.                 <y>0</y>
  130.             </position>
  131.         </component>
  132.     </entity>
  133.    
  134.     <entity name="Platform1" template="Platform">
  135.         <component type="com.pblabs.box2D.Box2DSpatialComponent" name="Platform1">
  136.             <position type="">
  137.                 <x>50</x>
  138.                 <y>-20</y>
  139.             </position>
  140.         </component>
  141.     </entity>
  142.        
  143.     <group name="Level1Data">
  144.         <objectReference name="Player"/>
  145.         <objectReference name="Ground"/>
  146.         <objectReference name="Platform1" />
  147.     </group>
  148.  
  149. </things>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement