[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." |
---|
[9346] | 8 | tags = "minigame" |
---|
[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") |
---|
[10325] | 22 | include("templates/towerdefensetower.oxt") |
---|
[10258] | 23 | include("templates/enemytowerdefense.oxt") |
---|
| 24 | include("templates/standardTurret.oxt") |
---|
[9112] | 25 | ?> |
---|
| 26 | |
---|
[9103] | 27 | <!-- Specify the position of the camera --> |
---|
[9139] | 28 | <Template name=centerpointmarkcamera defaults=0> |
---|
[10378] | 29 | <Pawn team=0> |
---|
[9103] | 30 | <camerapositions> |
---|
[10368] | 31 | <CameraPosition position="0,0,1500"/> |
---|
[9103] | 32 | </camerapositions> |
---|
[9112] | 33 | </Pawn> |
---|
[9103] | 34 | </Template> |
---|
[9096] | 35 | |
---|
[9139] | 36 | <!-- Loads a mesh to mark the center--> |
---|
| 37 | <Template name=centerpointmark> |
---|
[10378] | 38 | <Pawn team=0 camerapositiontemplate=centerpointmarkcamera> |
---|
[9103] | 39 | <attached> |
---|
[9138] | 40 | <Model position="0,0,0" mesh="cylinder.mesh" scale3D="1,1,1" /> <!-- the camera is attached to this --> |
---|
[9103] | 41 | </attached> |
---|
[9112] | 42 | </Pawn> |
---|
[9103] | 43 | </Template> |
---|
[9096] | 44 | |
---|
[9138] | 45 | |
---|
[9103] | 46 | <Level gametype = "TowerDefense"> |
---|
[9096] | 47 | <templates> |
---|
| 48 | <Template link=lodtemplate_default /> |
---|
| 49 | </templates> |
---|
[9272] | 50 | |
---|
[9096] | 51 | <?lua include("includes/notifications.oxi") ?> |
---|
| 52 | |
---|
| 53 | <Scene |
---|
| 54 | ambientlight = "0.8, 0.8, 0.8" |
---|
| 55 | skybox = "Orxonox/Starbox" |
---|
| 56 | > |
---|
[9272] | 57 | |
---|
| 58 | <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"/> |
---|
| 59 | |
---|
| 60 | <!-- Spawns the camera, attached to a crate --> |
---|
[10378] | 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 /--> |
---|
[9272] | 63 | |
---|
[10378] | 64 | <!--SpawnPoint team=0 position="0,0,10" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff /--> |
---|
[9272] | 65 | <!--SpawnPoint team=0 position="0,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff /--> |
---|
| 66 | |
---|
| 67 | |
---|
| 68 | |
---|
[10258] | 69 | |
---|
[9175] | 70 | <!--invisible entity to attach towers to, since playfield is static and towers are dynamic--> |
---|
[10335] | 71 | <StaticEntity position=0,0,0> |
---|
[9272] | 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 /> |
---|
[9143] | 77 | <!--Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" /--> <!-- Only temporary needed to help align the collisionshape --> |
---|
[9272] | 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" /--> |
---|
[9112] | 83 | </attached> |
---|
[9143] | 84 | <collisionShapes> <!-- The collisionshape forbids other worldentities that have a collisionShape to fly through it. |
---|
[9272] | 85 | |
---|
[9143] | 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. --> |
---|
[9168] | 90 | <BoxCollisionShape position="0,0,0" halfExtents="400,400,100" /> |
---|
[9143] | 91 | </collisionShapes> |
---|
[9272] | 92 | </StaticEntity> |
---|
| 93 | |
---|
| 94 | |
---|
| 95 | |
---|
| 96 | |
---|
| 97 | <!-- PlayField --> |
---|
| 98 | <TowerDefenseCenterpoint |
---|
| 99 | name=towerdefensecenter |
---|
| 100 | width=16 |
---|
| 101 | height=16 |
---|
| 102 | tileScale=100 |
---|
| 103 | position="0,0,0" |
---|
| 104 | direction="0,0,0" |
---|
| 105 | collisionType=dynamic |
---|
[10258] | 106 | mass=100000 |
---|
| 107 | /> |
---|
[9272] | 108 | |
---|
[9096] | 109 | </Scene> |
---|
| 110 | </Level> |
---|
| 111 | |
---|