Changeset 11163 for code/branches
- Timestamp:
- Apr 14, 2016, 1:00:08 PM (9 years ago)
- Location:
- code/branches/tgidronFS16
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/tgidronFS16/data/levels/Hover.oxw
r11052 r11163 25 25 ?> 26 26 27 <Template name=destroyhoverpickupRepresentation> 28 <PickupRepresentation> 29 <spawner-representation> 30 <StaticEntity> 31 <attached> 32 <Billboard position="0,0,0" colour="0.6,0.⁰,0.8" material="Sphere2" scale=0.1> 33 <attached> 34 <Billboard position="0,0,0" colour="0.6,0.⁰,0.8" material="Asterisk" scale=0.65 /> 35 </attached> 36 </Billboard> 37 </attached> 38 </StaticEntity> 39 </spawner-representation> 40 </PickupRepresentation> 41 </Template> 42 43 <PickupRepresentation 44 name = "destroyhover" 45 pickupName = "Destroy Carrier Pickup" 46 pickupDescription = "destroys you." 47 spawnerTemplate = "destroyhoverpickupRepresentation" 48 inventoryRepresentation = "destroyCarrierPickup" 49 /> 50 51 27 52 <Level 28 53 plugins = hover … … 33 58 </templates> 34 59 <?lua include("includes/notifications.oxi") ?> 60 61 62 35 63 36 64 <Scene -
code/branches/tgidronFS16/data/levels/templates/spaceshipHover.oxt
r11151 r11163 20 20 primaryThrust = 100 21 21 auxilaryThrust = 1 22 rotationThrust = 3022 rotationThrust = 40 23 23 24 jumpBoost = 9024 jumpBoost = 120 25 25 26 26 lift = 1; -
code/branches/tgidronFS16/data/overlays/HoverHUD.oxo
r11151 r11163 45 45 </HUDHealthBar> 46 46 47 47 48 48 <HUDNavigation 49 49 name = "Navigation" -
code/branches/tgidronFS16/src/modules/hover/FlagHUD.cc
r11151 r11163 54 54 this->overlay_->add2D(this->panel_); 55 55 56 this->flagCount_ = 1;57 setFlagCount( 1);56 this->flagCount_ = 5; 57 setFlagCount(5); 58 58 } 59 59 -
code/branches/tgidronFS16/src/modules/hover/Hover.cc
r11151 r11163 41 41 #include "gamestates/GSLevel.h" 42 42 43 #include "pickup/PickupSpawner.h" 44 #include "pickup/Pickup.h" 45 43 46 namespace orxonox 44 47 { … … 61 64 this->setHUDTemplate("HoverHUD"); 62 65 63 64 66 } 65 67 … … 89 91 } 90 92 93 94 91 95 //Generate inner Walls according to levelcode 92 96 for(int y=0; y<numCells; y++){ … … 103 107 104 108 //Generate 5 flags randomly (test only 1 flag) 105 for ( int i = 0; i < 1; i++ )109 for ( int i = 0; i < 5; i++ ) 106 110 { 107 111 HoverFlag* flag = new HoverFlag(origin_->getContext()); 108 112 flag->init(rand()%numCells, rand()%numCells, cellSize); 109 113 flags_.push_back(flag); 114 } 115 116 117 //Generate 10 Pickups randomly 118 for (int i = 0; i<10; i++) 119 { 120 PickupSpawner* pickup = new PickupSpawner(origin_->getContext()); 121 //PickupSpawner(this->getContext()); 122 //pickup->createDroppedPickup(this->getContext(), pickup , this, 10); 123 pickups_.push_back(pickup); 110 124 } 111 125 … … 117 131 void Hover::startLevel(){ 118 132 //Generate 5 flags randomly (test only 1 flag) 119 for ( int i = 0; i < 1; i++ )133 for ( int i = 0; i < 5; i++ ) 120 134 { 121 135 HoverFlag* flag = new HoverFlag(origin_->getContext()); -
code/branches/tgidronFS16/src/modules/hover/Hover.h
r11151 r11163 42 42 #include "gametypes/Gametype.h" 43 43 #include "HoverOrigin.h" 44 #include "pickup/PickupSpawner.h" 44 45 45 46 namespace orxonox … … 61 62 62 63 64 63 65 inline int getNumberOfFlags() const 64 66 { return this->numberOfFlags_; } … … 76 78 int cellHeight; 77 79 int numCells; 80 81 std::vector<PickupSpawner*> pickups_; 78 82 }; 79 83 }
Note: See TracChangeset
for help on using the changeset viewer.