Advertisement
Guest User

Untitled

a guest
Aug 12th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.63 KB | None | 0 0
  1. <platform version="1">
  2. <entity name="SpatialDB">
  3. <component type="com.pblabs.box2D.Box2DManagerComponent" name="Manager">
  4. <scale>190</scale>
  5. </component>
  6. </entity>
  7. <entity name="Scene">
  8. <component type="com.pblabs.rendering2D.DisplayObjectScene" name="Scene">
  9. <trackObject componentReference="Hero"/>
  10. <sceneViewName>MainView</sceneViewName>
  11. </component>
  12. </entity>
  13. <entity name="MouseArrow">
  14. <component type="com.pblabs.rendering2D.DisplayObjectScene" name="MouseArrow">
  15. <sceneViewName>MainView</sceneViewName>
  16. </component>
  17. </entity>
  18. <entity name="Box2DDebugger">
  19. <component type="com.pblabs.box2D.Box2DDebugComponent" name="Debug">
  20. <scene componentReference="Scene"/>
  21. <spatialManager componentReference="SpatialDB"/>
  22. <layerIndex>180</layerIndex>
  23. </component>
  24. </entity>
  25. <template name="PlatformTemplate">
  26. <component type="com.pblabs.box2D.Box2DSpatialComponent" name="Spatial">
  27. <canMove>false</canMove>
  28. <canRotate>false</canRotate>
  29. <collisionType>
  30. <Type>platform</Type>
  31. </collisionType>
  32. <collidesWithTypes>
  33. <Type>Hero</Type>
  34. </collidesWithTypes>
  35. <spatialManager componentReference="SpatialDB"/>
  36. <collisionShapes>
  37. <_ type="com.pblabs.box2D.PolygonCollisionShape">
  38. <vertices childType="flash.geom.Point">
  39. <_><x>-1</x><y>-1</y></_>
  40. <_><x>1</x><y>-1</y></_>
  41. <_><x>1</x><y>1</y></_>
  42. <_><x>-1</x><y>1</y></_>
  43. </vertices>
  44. <density>1.0</density>
  45. <friction>0.2</friction>
  46. </_>
  47. </collisionShapes>
  48. </component>
  49. </template>
  50. <template name="RenderedPlatformTemplate" template="PlatformTemplate">
  51. <component type="com.pblabs.rendering2D.MovieClipRenderer" name="Render">
  52. <frameRate>30</frameRate>
  53. <loop>true</loop>
  54. <positionProperty>@Spatial.position</positionProperty>
  55. <rotationProperty>@Spatial.rotation</rotationProperty>
  56. <layerIndex>11</layerIndex>
  57. <scene componentReference="Scene"/>
  58. </component>
  59. </template>
  60. <template name="TileTemplate">
  61. <component type="com.pblabs.tilemap.TileMap" name="TileMap">
  62. <width>1</width>
  63. <height>6</height>
  64. <tileSize>
  65. <x>700</x>
  66. <y>100</y>
  67. </tileSize>
  68. </component>
  69. <component type="com.pblabs.tilemap.TileMapRenderer" name="Renderer">
  70. <scene componentReference="Scene"/>
  71. <map componentName="TileMap"/>
  72. </component>
  73. </template>
  74. <template name="HeroTemplate">
  75. <component type="com.pblabs.box2D.Box2DSpatialComponent" name="Spatial">
  76. <position>
  77. <x>0</x>
  78. <y>0</y>
  79. </position>
  80. <spatialManager componentReference="SpatialDB"/>
  81. <collisionType>
  82. <Type>Hero</Type>
  83. </collisionType>
  84. <collidesWithTypes>
  85. <Type>platform</Type>
  86. <Type>wall</Type>
  87. </collidesWithTypes>
  88. <size>
  89. <x>50</x>
  90. <y>90</y>
  91. </size>
  92. <canMove>true</canMove>
  93. <canRotate>false</canRotate>
  94. <canSleep>false</canSleep>
  95. <collisionShapes>
  96. <_ type="com.pblabs.box2D.PolygonCollisionShape">
  97. <vertices childType="flash.geom.Point">
  98. <_><x>-1</x><y>-1.2</y></_>
  99. <_><x>1</x><y>-1.2</y></_>
  100. <_><x>1</x><y>1.1</y></_>
  101. <_><x>-1</x><y>1.1</y></_>
  102. </vertices>
  103. <friction>.25</friction>
  104. </_>
  105. </collisionShapes>
  106. </component>
  107. <component type="input.EyeControllerComponent" name="EyeController">
  108. </component>
  109. <component type="com.pblabs.rendering2D.MovieClipRenderer" name="Render">
  110. <scene componentReference="Scene"/>
  111. <frameRate>60</frameRate>
  112. <positionProperty>@Spatial.position</positionProperty>
  113. <rotationProperty>@Spatial.rotation</rotationProperty>
  114. <clip type="qtopian_F_IDLE_MC"/>
  115. <loop>true</loop>
  116. </component>
  117. <component type="input.MouseControllerComponent" name="Controller">
  118. <PositionProperty>@Spatial.position</PositionProperty>
  119. <ScaleProperty>@Render.scale</ScaleProperty>
  120. <BodyProperty>@Spatial.body</BodyProperty>
  121. </component>
  122. <!--<component type="input.StoppedFallingComponent" name="StoppedFalling">
  123. <BodyProperty>@Spatial.body</BodyProperty>
  124. </component>-->
  125. <!--<component type="input.JumpThroughComponent" name="JumpThrough">
  126. <BodyProperty>@Spatial.body</BodyProperty>
  127. </component>-->
  128. </template>
  129. <template name="ArrowTemplate">
  130. <component type="com.pblabs.rendering2D.SimpleSpatialComponent" name="Spatial">
  131. <size>
  132. <x>40</x>
  133. <y>40</y>
  134. </size>
  135. <spatialManager componentReference="SpatialDB"/>
  136. </component>
  137. <component type="com.pblabs.rendering2D.MovieClipRenderer" name="Render">
  138. <clip type="assets.character.arrows.Default"/>
  139. <frameRate>1</frameRate>
  140. <loop>true</loop>
  141. <alpha>.3</alpha>
  142. <positionProperty>@Spatial.position</positionProperty>
  143. <rotationProperty>@Spatial.rotation</rotationProperty>
  144. <layerIndex>100</layerIndex>
  145. <scene componentReference="MouseArrow"/>
  146. </component>
  147. <component type="input.ArrowControllerComponent" name="Controller">
  148. <PositionProperty>@Spatial.position</PositionProperty>
  149. <RotationProperty>@Spatial.rotation</RotationProperty>
  150. <ScaleProperty>@Render.scale</ScaleProperty>
  151. </component>
  152. </template>
  153. <template name="DoorTemplate">
  154. <component type="com.pblabs.rendering2D.SimpleSpatialComponent" name="Spatial">
  155. <spatialManager componentReference="SpatialDB"/>
  156. </component>
  157. <component type="com.pblabs.rendering2D.MovieClipRenderer" name="Render">
  158. <clip type="assets.game.Door"/>
  159. <frameRate>1</frameRate>
  160. <loop>true</loop>
  161. <positionProperty>@Spatial.position</positionProperty>
  162. <rotationProperty>@Spatial.rotation</rotationProperty>
  163. <layerIndex>5</layerIndex>
  164. <scene componentReference="Scene"/>
  165. </component>
  166. <component type="gameAssets.GlowWhenOverComponent" name="Glow">
  167.  
  168. </component>
  169. </template>
  170. <template name="BackgroundTemplate">
  171. <component type="com.pblabs.box2D.Box2DSpatialComponent" name="Spatial">
  172. <size>
  173. <x>3104</x>
  174. <y>720</y>
  175. </size>
  176. <spatialManager entityName="SpatialDB"/>
  177. </component>
  178. <component type="com.pblabs.rendering2D.MovieClipRenderer" name="Render0">
  179. <frameRate>1</frameRate>
  180. <loop>false</loop>
  181. <positionProperty>@Spatial.position</positionProperty>
  182. <rotationProperty>@Spatial.rotation</rotationProperty>
  183. <layerIndex>1</layerIndex>
  184. <scene entityName="Scene"/>
  185. </component>
  186. <component type="com.pblabs.rendering2D.MovieClipRenderer" name="Render1">
  187. <frameRate>1</frameRate>
  188. <loop>false</loop>
  189. <positionProperty>@Spatial.position</positionProperty>
  190. <rotationProperty>@Spatial.rotation</rotationProperty>
  191. <layerIndex>2</layerIndex>
  192. <scene componentReference="Scene"/>
  193. </component>
  194. <component type="com.pblabs.rendering2D.MovieClipRenderer" name="Render2">
  195. <frameRate>1</frameRate>
  196. <loop>false</loop>
  197. <positionProperty>@Spatial.position</positionProperty>
  198. <rotationProperty>@Spatial.rotation</rotationProperty>
  199. <layerIndex>3</layerIndex>
  200. <scene componentReference="Scene"/>
  201. </component>
  202. <component type="com.pblabs.rendering2D.MovieClipRenderer" name="Render3">
  203. <frameRate>1</frameRate>
  204. <loop>false</loop>
  205. <positionProperty>@Spatial.position</positionProperty>
  206. <rotationProperty>@Spatial.rotation</rotationProperty>
  207. <layerIndex>13</layerIndex>
  208. <scene componentReference="Scene"/>
  209. </component>
  210. </template>
  211. <entity name="Hero" template="HeroTemplate">
  212. <component name="Render">
  213. <layerIndex>10</layerIndex>
  214. </component>
  215. </entity>
  216.  
  217. <group name="Managers">
  218. <objectReference name="SpatialDB"/>
  219. <objectReference name="Scene"/>
  220. <objectReference name="Box2DDebugger"/>
  221. <objectReference name="Hero"/>
  222. <objectReference name="MouseArrow"/>
  223. </group>
  224. </platform>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement