Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <things version="1">
- <template name="Platform">
- <component type="com.pblabs.box2D.Box2DSpatialComponent" name="Platform">
- <spatialManager componentReference="SceneDB" />
- <canRotate>false</canRotate>
- <canSleep>true</canSleep>
- <CanMove>false</CanMove>
- <collidesWithTypes childType="String">
- <_1>Player</_1>
- </collidesWithTypes>
- <position type="">
- <x>0</x>
- <y>0</y>
- </position>
- <size type="">
- <x>39</x>
- <y>8</y>
- </size>
- <collisionShapes childType="com.pblabs.box2D.CollisionShape">
- <_0 type="com.pblabs.box2D.PolygonCollisionShape">
- <vertices childType="flash.geom.Point">
- <_0 type="">
- <x>-1</x>
- <y>-1</y>
- </_0>
- <_1 type="">
- <x>1</x>
- <y>-1</y>
- </_1>
- <_2 type="">
- <x>1</x>
- <y>1</y>
- </_2>
- <_3 type="">
- <x>-1</x>
- <y>1</y>
- </_3>
- </vertices>
- </_0>
- </collisionShapes>
- <collisionType childType="String">
- <_0>Platform</_0>
- <_1>Renderable</_1>
- </collisionType>
- </component>
- <component type="com.pblabs.rendering2D.SpriteRenderer" name="Render">
- <scene componentReference="SceneDB" />
- <positionProperty>@Platform.position</positionProperty>
- <fileName>assets/images/platform.png</fileName>
- </component>
- <component type="be.svenpeeters.aybabtu.components.platform.PlatformComponent" name="PlatformComponent">
- </component>
- <component type="be.svenpeeters.aybabtu.components.platform.BehaviourComponent" name="BehaviourComponent">
- <positionProperty>@Platform.position</positionProperty>
- <linearVelReference>@Platform.linearVelocity</linearVelReference>
- </component>
- </template>
- <entity name="Player">
- <component type="com.pblabs.box2D.Box2DSpatialComponent" name="Player">
- <spatialManager componentReference="SceneDB"/>
- <canRotate>false</canRotate>
- <canSleep>false</canSleep>
- <collidesWithTypes childType="String">
- <_0>Platform</_0>
- </collidesWithTypes>
- <size type="">
- <x>16</x>
- <y>26</y>
- </size>
- <position type="">
- <x>0</x>
- <y>-50</y>
- </position>
- <collisionShapes childType="com.pblabs.box2D.CollisionShape">
- <_0 type="com.pblabs.box2D.PolygonCollisionShape">
- <vertices childType="flash.geom.Point">
- <_0 type="">
- <x>-1</x>
- <y>-1</y>
- </_0>
- <_1 type="">
- <x>1</x>
- <y>-1</y>
- </_1>
- <_2 type="">
- <x>1</x>
- <y>1</y>
- </_2>
- <_3 type="">
- <x>-1</x>
- <y>1</y>
- </_3>
- </vertices>
- </_0>
- </collisionShapes>
- <collisionType childType="String">
- <_0>Player</_0>
- <_1>Renderable</_1>
- </collisionType>
- </component>
- <component type="com.pblabs.rendering2D.SpriteRenderer" name="Render">
- <scene componentReference="SceneDB"/>
- <positionProperty>@Player.position</positionProperty>
- <fileName>assets/images/player.png</fileName>
- </component>
- <component type="be.svenpeeters.aybabtu.components.player.PlayerComponent" name="PlayerComponent">
- </component>
- <component type="be.svenpeeters.aybabtu.components.player.BehaviourComponent" name="BehaviourComponent">
- <positionProperty>@Player.position</positionProperty>
- <linearVelReference>@Player.position</linearVelReference>
- </component>
- </entity>
- <entity name="Ground" template="Platform">
- <component type="com.pblabs.box2D.Box2DSpatialComponent" name="Ground">
- <position type="">
- <x>0</x>
- <y>0</y>
- </position>
- </component>
- </entity>
- <entity name="Platform1" template="Platform">
- <component type="com.pblabs.box2D.Box2DSpatialComponent" name="Platform1">
- <position type="">
- <x>50</x>
- <y>-20</y>
- </position>
- </component>
- </entity>
- <group name="Level1Data">
- <objectReference name="Player"/>
- <objectReference name="Ground"/>
- <objectReference name="Platform1" />
- </group>
- </things>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement