[9112] | 1 | <!-- TODO: Update the level's image--> |
---|
[9141] | 2 | |
---|
| 3 | <!-- See TowerDefenseReadme.txt for Information on this file --> |
---|
| 4 | |
---|
[9096] | 5 | <LevelInfo |
---|
| 6 | name = "Tower Defense" |
---|
[9112] | 7 | description = "Defend your Spacestation from incoming waves." |
---|
| 8 | tags = "gametype" |
---|
[9096] | 9 | screenshot = "emptylevel.png" |
---|
| 10 | /> |
---|
| 11 | |
---|
| 12 | <?lua |
---|
| 13 | include("stats.oxo") |
---|
| 14 | include("HUDTemplates3.oxo") |
---|
[9173] | 15 | include("towerdefenseHUD.oxo") |
---|
[9096] | 16 | include("templates/lodInformation.oxt") |
---|
| 17 | ?> |
---|
| 18 | |
---|
[9112] | 19 | <?lua |
---|
| 20 | include("templates/spaceshipAssff.oxt") |
---|
| 21 | include("templates/spaceshipPirate.oxt") |
---|
[9161] | 22 | include("templates/tower.oxt") |
---|
[9112] | 23 | ?> |
---|
| 24 | |
---|
[9103] | 25 | <!-- Specify the position of the camera --> |
---|
[9139] | 26 | <Template name=centerpointmarkcamera defaults=0> |
---|
[9112] | 27 | <Pawn> |
---|
[9103] | 28 | <camerapositions> |
---|
[9154] | 29 | <CameraPosition position="0,0,2000"/> |
---|
[9103] | 30 | </camerapositions> |
---|
[9112] | 31 | </Pawn> |
---|
[9103] | 32 | </Template> |
---|
[9096] | 33 | |
---|
[9139] | 34 | <!-- Loads a mesh to mark the center--> |
---|
| 35 | <Template name=centerpointmark> |
---|
| 36 | <Pawn camerapositiontemplate=centerpointmarkcamera> |
---|
[9103] | 37 | <attached> |
---|
[9138] | 38 | <Model position="0,0,0" mesh="cylinder.mesh" scale3D="1,1,1" /> <!-- the camera is attached to this --> |
---|
[9103] | 39 | </attached> |
---|
[9112] | 40 | </Pawn> |
---|
[9103] | 41 | </Template> |
---|
[9096] | 42 | |
---|
[9138] | 43 | |
---|
[9167] | 44 | <!-- Template for a tower EDIT: new towertemplate is included with "templates/tower" --> |
---|
[9161] | 45 | <!--Template name=towertemplate> |
---|
[9134] | 46 | <Tower> |
---|
| 47 | <attached> |
---|
[9161] | 48 | <Model position="0,0,0" scale=0.25 mesh="Tower_ME.mesh" /> |
---|
[9134] | 49 | </attached> |
---|
| 50 | </Tower> |
---|
[9161] | 51 | </Template--> |
---|
[9096] | 52 | |
---|
[9175] | 53 | |
---|
| 54 | |
---|
| 55 | |
---|
| 56 | |
---|
[9103] | 57 | <Level gametype = "TowerDefense"> |
---|
[9096] | 58 | <templates> |
---|
| 59 | <Template link=lodtemplate_default /> |
---|
| 60 | </templates> |
---|
[9139] | 61 | |
---|
[9096] | 62 | <?lua include("includes/notifications.oxi") ?> |
---|
| 63 | |
---|
| 64 | <Scene |
---|
| 65 | ambientlight = "0.8, 0.8, 0.8" |
---|
| 66 | skybox = "Orxonox/Starbox" |
---|
| 67 | > |
---|
[9139] | 68 | |
---|
| 69 | <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0"/> |
---|
[9124] | 70 | |
---|
[9133] | 71 | <!-- Spawns the camera, attached to a crate --> |
---|
[9139] | 72 | <SpawnPoint team=0 position="0,0,0" spawnclass=Pawn pawndesign=centerpointmark /> |
---|
[9142] | 73 | <!--TeamSpawnPoint team=1 position="-7,7,4" direction="-1,0,0" roll=90 yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff /--> |
---|
[9138] | 74 | |
---|
[9134] | 75 | <!--SpawnPoint team=1 position="0,0,10" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff /--> |
---|
[9138] | 76 | <!--SpawnPoint team=0 position="0,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff /--> |
---|
[9124] | 77 | |
---|
[9213] | 78 | <SpaceShip position="-700,-500, 100" lookat="0,0,0" scale=2 team=1 > |
---|
[9129] | 79 | <templates> |
---|
| 80 | <Template link=spaceshipassff /> |
---|
| 81 | </templates> |
---|
| 82 | <controller> |
---|
[9213] | 83 | <WaypointController accuracy=60> |
---|
[9129] | 84 | <waypoints> |
---|
[9154] | 85 | <!-- 1,3 10,3 10,11, 13,11 --> |
---|
[9175] | 86 | <Model mesh="cube.mesh" scale=20 position="-700,-500, 100" /> |
---|
| 87 | <Model mesh="cube.mesh" scale=20 position=" 200,-500, 100" /> |
---|
| 88 | <Model mesh="cube.mesh" scale=20 position=" 200, 300, 100" /> |
---|
| 89 | <Model mesh="cube.mesh" scale=20 position=" 500, 300, 100" /> |
---|
[9129] | 90 | </waypoints> |
---|
| 91 | </WaypointController> |
---|
| 92 | </controller> |
---|
[9154] | 93 | </SpaceShip> |
---|
[9129] | 94 | |
---|
[9175] | 95 | |
---|
| 96 | <!--invisible entity to attach towers to, since playfield is static and towers are dynamic--> |
---|
| 97 | <StaticEntity position=0,0,0> |
---|
| 98 | |
---|
[9138] | 99 | <attached> |
---|
[9154] | 100 | <Model position="-50,-50,0" mesh="Playfield_ME.mesh" scale=80 /> |
---|
[9143] | 101 | <!--Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" /--> <!-- Only temporary needed to help align the collisionshape --> |
---|
[9139] | 102 | <!-- This was used to mark the playfield, let's let it be here for now --> |
---|
[9138] | 103 | <!--Model position="-8,8,0" mesh="crate.mesh" scale3D="0.3,0.3,0.3" /--> |
---|
| 104 | <!--Model position="-8,-8,0" mesh="crate.mesh" scale3D="0.3,0.3,0.3" /--> |
---|
| 105 | <!--Model position="8,-8,0" mesh="crate.mesh" scale3D="0.3,0.3,0.3" /--> |
---|
| 106 | <!--Model position="8,8,0" mesh="crate.mesh" scale3D="0.3,0.3,0.3" /--> |
---|
[9112] | 107 | </attached> |
---|
[9143] | 108 | <collisionShapes> <!-- The collisionshape forbids other worldentities that have a collisionShape to fly through it. |
---|
| 109 | |
---|
| 110 | TODO: Find correct size for the collisionshape; since a collisionShape is invisible |
---|
| 111 | I added the crate wich currently has the same dimensions as the collisionshape. |
---|
| 112 | You have to adjust the crate's scale3D as well as the collisionshape's halfExtens to |
---|
| 113 | find the proper shape. --> |
---|
[9168] | 114 | <BoxCollisionShape position="0,0,0" halfExtents="400,400,100" /> |
---|
[9143] | 115 | </collisionShapes> |
---|
[9175] | 116 | </StaticEntity> |
---|
| 117 | |
---|
| 118 | |
---|
| 119 | |
---|
| 120 | |
---|
| 121 | <!-- PlayField --> |
---|
| 122 | <TowerDefenseCenterpoint |
---|
| 123 | name=towerdefensecenter |
---|
| 124 | width=16 |
---|
| 125 | height=16 |
---|
| 126 | tileScale=100 |
---|
| 127 | towerTemplate=tower |
---|
| 128 | position="0,0,0" |
---|
| 129 | direction="0,0,0" |
---|
| 130 | collisionType=dynamic |
---|
| 131 | mass=100000> |
---|
| 132 | |
---|
[9134] | 133 | </TowerDefenseCenterpoint> |
---|
[9098] | 134 | |
---|
[9096] | 135 | </Scene> |
---|
| 136 | </Level> |
---|
| 137 | |
---|