Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <platform version="1">
- <entity name="SpatialDB">
- <component type="com.pblabs.box2D.Box2DManagerComponent" name="Manager">
- <scale>190</scale>
- </component>
- </entity>
- <entity name="Scene">
- <component type="com.pblabs.rendering2D.DisplayObjectScene" name="Scene">
- <trackObject componentReference="Hero"/>
- <sceneViewName>MainView</sceneViewName>
- </component>
- </entity>
- <entity name="MouseArrow">
- <component type="com.pblabs.rendering2D.DisplayObjectScene" name="MouseArrow">
- <sceneViewName>MainView</sceneViewName>
- </component>
- </entity>
- <entity name="Box2DDebugger">
- <component type="com.pblabs.box2D.Box2DDebugComponent" name="Debug">
- <scene componentReference="Scene"/>
- <spatialManager componentReference="SpatialDB"/>
- <layerIndex>180</layerIndex>
- </component>
- </entity>
- <template name="PlatformTemplate">
- <component type="com.pblabs.box2D.Box2DSpatialComponent" name="Spatial">
- <canMove>false</canMove>
- <canRotate>false</canRotate>
- <collisionType>
- <Type>platform</Type>
- </collisionType>
- <collidesWithTypes>
- <Type>Hero</Type>
- </collidesWithTypes>
- <spatialManager componentReference="SpatialDB"/>
- <collisionShapes>
- <_ type="com.pblabs.box2D.PolygonCollisionShape">
- <vertices childType="flash.geom.Point">
- <_><x>-1</x><y>-1</y></_>
- <_><x>1</x><y>-1</y></_>
- <_><x>1</x><y>1</y></_>
- <_><x>-1</x><y>1</y></_>
- </vertices>
- <density>1.0</density>
- <friction>0.2</friction>
- </_>
- </collisionShapes>
- </component>
- </template>
- <template name="RenderedPlatformTemplate" template="PlatformTemplate">
- <component type="com.pblabs.rendering2D.MovieClipRenderer" name="Render">
- <frameRate>30</frameRate>
- <loop>true</loop>
- <positionProperty>@Spatial.position</positionProperty>
- <rotationProperty>@Spatial.rotation</rotationProperty>
- <layerIndex>11</layerIndex>
- <scene componentReference="Scene"/>
- </component>
- </template>
- <template name="TileTemplate">
- <component type="com.pblabs.tilemap.TileMap" name="TileMap">
- <width>1</width>
- <height>6</height>
- <tileSize>
- <x>700</x>
- <y>100</y>
- </tileSize>
- </component>
- <component type="com.pblabs.tilemap.TileMapRenderer" name="Renderer">
- <scene componentReference="Scene"/>
- <map componentName="TileMap"/>
- </component>
- </template>
- <template name="HeroTemplate">
- <component type="com.pblabs.box2D.Box2DSpatialComponent" name="Spatial">
- <position>
- <x>0</x>
- <y>0</y>
- </position>
- <spatialManager componentReference="SpatialDB"/>
- <collisionType>
- <Type>Hero</Type>
- </collisionType>
- <collidesWithTypes>
- <Type>platform</Type>
- <Type>wall</Type>
- </collidesWithTypes>
- <size>
- <x>50</x>
- <y>90</y>
- </size>
- <canMove>true</canMove>
- <canRotate>false</canRotate>
- <canSleep>false</canSleep>
- <collisionShapes>
- <_ type="com.pblabs.box2D.PolygonCollisionShape">
- <vertices childType="flash.geom.Point">
- <_><x>-1</x><y>-1.2</y></_>
- <_><x>1</x><y>-1.2</y></_>
- <_><x>1</x><y>1.1</y></_>
- <_><x>-1</x><y>1.1</y></_>
- </vertices>
- <friction>.25</friction>
- </_>
- </collisionShapes>
- </component>
- <component type="input.EyeControllerComponent" name="EyeController">
- </component>
- <component type="com.pblabs.rendering2D.MovieClipRenderer" name="Render">
- <scene componentReference="Scene"/>
- <frameRate>60</frameRate>
- <positionProperty>@Spatial.position</positionProperty>
- <rotationProperty>@Spatial.rotation</rotationProperty>
- <clip type="qtopian_F_IDLE_MC"/>
- <loop>true</loop>
- </component>
- <component type="input.MouseControllerComponent" name="Controller">
- <PositionProperty>@Spatial.position</PositionProperty>
- <ScaleProperty>@Render.scale</ScaleProperty>
- <BodyProperty>@Spatial.body</BodyProperty>
- </component>
- <!--<component type="input.StoppedFallingComponent" name="StoppedFalling">
- <BodyProperty>@Spatial.body</BodyProperty>
- </component>-->
- <!--<component type="input.JumpThroughComponent" name="JumpThrough">
- <BodyProperty>@Spatial.body</BodyProperty>
- </component>-->
- </template>
- <template name="ArrowTemplate">
- <component type="com.pblabs.rendering2D.SimpleSpatialComponent" name="Spatial">
- <size>
- <x>40</x>
- <y>40</y>
- </size>
- <spatialManager componentReference="SpatialDB"/>
- </component>
- <component type="com.pblabs.rendering2D.MovieClipRenderer" name="Render">
- <clip type="assets.character.arrows.Default"/>
- <frameRate>1</frameRate>
- <loop>true</loop>
- <alpha>.3</alpha>
- <positionProperty>@Spatial.position</positionProperty>
- <rotationProperty>@Spatial.rotation</rotationProperty>
- <layerIndex>100</layerIndex>
- <scene componentReference="MouseArrow"/>
- </component>
- <component type="input.ArrowControllerComponent" name="Controller">
- <PositionProperty>@Spatial.position</PositionProperty>
- <RotationProperty>@Spatial.rotation</RotationProperty>
- <ScaleProperty>@Render.scale</ScaleProperty>
- </component>
- </template>
- <template name="DoorTemplate">
- <component type="com.pblabs.rendering2D.SimpleSpatialComponent" name="Spatial">
- <spatialManager componentReference="SpatialDB"/>
- </component>
- <component type="com.pblabs.rendering2D.MovieClipRenderer" name="Render">
- <clip type="assets.game.Door"/>
- <frameRate>1</frameRate>
- <loop>true</loop>
- <positionProperty>@Spatial.position</positionProperty>
- <rotationProperty>@Spatial.rotation</rotationProperty>
- <layerIndex>5</layerIndex>
- <scene componentReference="Scene"/>
- </component>
- <component type="gameAssets.GlowWhenOverComponent" name="Glow">
- </component>
- </template>
- <template name="BackgroundTemplate">
- <component type="com.pblabs.box2D.Box2DSpatialComponent" name="Spatial">
- <size>
- <x>3104</x>
- <y>720</y>
- </size>
- <spatialManager entityName="SpatialDB"/>
- </component>
- <component type="com.pblabs.rendering2D.MovieClipRenderer" name="Render0">
- <frameRate>1</frameRate>
- <loop>false</loop>
- <positionProperty>@Spatial.position</positionProperty>
- <rotationProperty>@Spatial.rotation</rotationProperty>
- <layerIndex>1</layerIndex>
- <scene entityName="Scene"/>
- </component>
- <component type="com.pblabs.rendering2D.MovieClipRenderer" name="Render1">
- <frameRate>1</frameRate>
- <loop>false</loop>
- <positionProperty>@Spatial.position</positionProperty>
- <rotationProperty>@Spatial.rotation</rotationProperty>
- <layerIndex>2</layerIndex>
- <scene componentReference="Scene"/>
- </component>
- <component type="com.pblabs.rendering2D.MovieClipRenderer" name="Render2">
- <frameRate>1</frameRate>
- <loop>false</loop>
- <positionProperty>@Spatial.position</positionProperty>
- <rotationProperty>@Spatial.rotation</rotationProperty>
- <layerIndex>3</layerIndex>
- <scene componentReference="Scene"/>
- </component>
- <component type="com.pblabs.rendering2D.MovieClipRenderer" name="Render3">
- <frameRate>1</frameRate>
- <loop>false</loop>
- <positionProperty>@Spatial.position</positionProperty>
- <rotationProperty>@Spatial.rotation</rotationProperty>
- <layerIndex>13</layerIndex>
- <scene componentReference="Scene"/>
- </component>
- </template>
- <entity name="Hero" template="HeroTemplate">
- <component name="Render">
- <layerIndex>10</layerIndex>
- </component>
- </entity>
- <group name="Managers">
- <objectReference name="SpatialDB"/>
- <objectReference name="Scene"/>
- <objectReference name="Box2DDebugger"/>
- <objectReference name="Hero"/>
- <objectReference name="MouseArrow"/>
- </group>
- </platform>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement