Changeset 10126 for code/branches
- Timestamp:
- Nov 19, 2014, 1:14:02 PM (10 years ago)
- Location:
- code/branches/towerdefenseHS14
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/towerdefenseHS14/data/levels/templates/enemyTowerdefense.oxt
r10125 r10126 40 40 explosionSound = "sounds/Explosion2.ogg" 41 41 > 42 42 43 <engines> 43 44 <MultiStateEngine position=" 7.6, 0, 6" template=spaceshipassffengine /> … … 57 58 <BoxCollisionShape position="0,0.1,-19" halfExtents="1.4, 1, 2" /> 58 59 </collisionShapes> 60 <controller> 61 <WaypointController accuracy=60> 62 <waypoints> 63 <!-- 1,3 10,3 10,11, 13,11 --> 64 <Model mesh="cube.mesh" scale=10 position="-700,-500, 150" /> 65 <Model mesh="cube.mesh" scale=10 position=" -400,-500, 150" /> 66 <Model position=" -400, 600, 150" /> 67 <Model mesh="cube.mesh" scale=10 position=" 500, 600, 150" /> 68 <Model mesh="cube.mesh" scale=10 position=" 500, 700, 150" /> 69 </waypoints> 70 </WaypointController> 71 </controller> 59 72 </TowerDefenseEnemy> 60 73 </Template> -
code/branches/towerdefenseHS14/data/levels/towerDefense.oxw
r10125 r10126 77 77 <!--SpawnPoint team=0 position="0,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff /--> 78 78 79 < SpaceShipposition="-700,-500, 100" lookat="0,0,0" scale=3 team=1 >79 <TowerDefenseEnemy position="-700,-500, 100" lookat="0,0,0" scale=3 team=1 > 80 80 <templates> 81 81 <Template link=enemytowerdefense /> … … 93 93 </WaypointController> 94 94 </controller> 95 </ SpaceShip>95 </TowerDefenseEnemy> 96 96 97 97 -
code/branches/towerdefenseHS14/src/modules/towerdefense/TowerDefense.cc
r10125 r10126 163 163 164 164 165 for(int i = 0 ; i < 1; ++i)165 for(int i = 0 ; i < 20 ; ++i) 166 166 { 167 167 addTowerDefenseEnemy(path); … … 184 184 en1->addTemplate("enemytowerdefense"); 185 185 en1->setScale(3); 186 en1->getController(); 186 187 187 188 -
code/branches/towerdefenseHS14/src/modules/towerdefense/TowerDefenseEnemy.cc
r10123 r10126 24 24 Constructor. Registers and initializes the object. 25 25 */ 26 TowerDefenseEnemy::TowerDefenseEnemy(Context* context) : Pawn(context)26 TowerDefenseEnemy::TowerDefenseEnemy(Context* context) : SpaceShip(context) 27 27 { 28 28 RegisterObject(TowerDefenseEnemy); … … 35 35 { 36 36 orxout() << "test4" << endl; 37 Waypointsvector_.push_back(coord);37 this->Waypointsvector_.push_back(coord); 38 38 orxout() << "test5" << endl; 39 39 } … … 58 58 } 59 59 */ 60 60 61 } -
code/branches/towerdefenseHS14/src/modules/towerdefense/TowerDefenseEnemy.h
r10123 r10126 28 28 * 29 29 */ 30 class _TowerDefenseExport TowerDefenseEnemy : public Pawn30 class _TowerDefenseExport TowerDefenseEnemy : public SpaceShip 31 31 { 32 32 … … 41 41 void popWaypoint(); 42 42 TDCoordinate peekWaypoint(); 43 44 43 45 private: 44 46
Note: See TracChangeset
for help on using the changeset viewer.