Changeset 10406 for code/branches/towerdefenseFS15/data/levels
- Timestamp:
- Apr 26, 2015, 10:16:26 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/towerdefenseFS15/data/levels/towerDefense.oxw
r10378 r10406 25 25 ?> 26 26 27 <!-- Specify the position of the camera --> 28 <Template name= centerpointmarkcameradefaults=0>29 < Pawn team=0>27 28 <Template name=selectercameras defaults=0> 29 <TowerDefenseSelecter> 30 30 <camerapositions> 31 <CameraPosition position="0,0,1 500"/>31 <CameraPosition position="0,0,1400" lookat="0,0,0" absolute=true /> 32 32 </camerapositions> 33 </ Pawn>33 </TowerDefenseSelecter> 34 34 </Template> 35 35 36 <!-- Loads a mesh to mark the center--> 37 <Template name=centerpointmark> 38 <Pawn team=0 camerapositiontemplate=centerpointmarkcamera> 36 <Template name=selectertemplate> 37 <TowerDefenseSelecter team=0 camerapositiontemplate=selectercameras> 39 38 <attached> 40 <Model position="0,0,0" mesh="c ylinder.mesh" scale3D="1,1,1" /> <!-- the camera is attached to this -->39 <Model position="0,0,0" mesh="cube.mesh" scale=45 /> 41 40 </attached> 42 </ Pawn>41 </TowerDefenseSelecter> 43 42 </Template> 43 44 44 45 45 46 … … 59 60 60 61 <!-- Spawns the camera, attached to a crate --> 61 <SpawnPoint team=0 position="0,0,0" pawndesign=centerpointmark /> 62 <!--TeamSpawnPoint team=0 position="-7,7,4" direction="-1,0,0" roll=90 yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff /--> 63 64 <!--SpawnPoint team=0 position="0,0,10" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff /--> 65 <!--SpawnPoint team=0 position="0,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff /--> 66 67 68 69 70 <!--invisible entity to attach towers to, since playfield is static and towers are dynamic--> 71 <StaticEntity position=0,0,0> 72 73 <attached> 74 <Model position="-50,-50,0" mesh="Playfield_ME.mesh" scale=80 /> 75 <!-- Base --> 76 <Model position="500,700,100" mesh="sphere.mesh" scale=80 /> 77 <!--Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" /--> <!-- Only temporary needed to help align the collisionshape --> 78 <!-- This was used to mark the playfield, let's let it be here for now --> 79 <!--Model position="-8,8,0" mesh="crate.mesh" scale3D="0.3,0.3,0.3" /--> 80 <!--Model position="-8,-8,0" mesh="crate.mesh" scale3D="0.3,0.3,0.3" /--> 81 <!--Model position="8,-8,0" mesh="crate.mesh" scale3D="0.3,0.3,0.3" /--> 82 <!--Model position="8,8,0" mesh="crate.mesh" scale3D="0.3,0.3,0.3" /--> 83 </attached> 84 <collisionShapes> <!-- The collisionshape forbids other worldentities that have a collisionShape to fly through it. 85 86 TODO: Find correct size for the collisionshape; since a collisionShape is invisible 87 I added the crate wich currently has the same dimensions as the collisionshape. 88 You have to adjust the crate's scale3D as well as the collisionshape's halfExtens to 89 find the proper shape. --> 90 <BoxCollisionShape position="0,0,0" halfExtents="400,400,100" /> 91 </collisionShapes> 92 </StaticEntity> 93 94 95 62 <SpawnPoint team=0 position="0,0,0"/> 96 63 97 64 <!-- PlayField --> 98 65 <TowerDefenseCenterpoint 99 66 name=towerdefensecenter 67 68 selecterTemplate=selectertemplate 69 100 70 width=16 101 71 height=16 … … 105 75 collisionType=dynamic 106 76 mass=100000 107 /> 77 > 78 <attached> 79 <Model position="-50,-50,0" mesh="Playfield_ME.mesh" scale=80 /> 80 <Model position="500,700,100" mesh="sphere.mesh" scale=80 /> 81 </attached> 82 <camerapositions> 83 <CameraPosition position="0,0,1500" lookat="0,0,0" absolute=true/> 84 </camerapositions> 85 </TowerDefenseCenterpoint> 108 86 109 87 </Scene>
Note: See TracChangeset
for help on using the changeset viewer.