- Timestamp:
- Dec 19, 2007, 1:10:23 PM (17 years ago)
- Location:
- code/branches/FICN
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/bin/levels/sample.oxw
r653 r655 12 12 13 13 14 <!--<audio>14 <audio> 15 15 <ambient> 16 16 <ogg src="allgorythm-lift_up" /> … … 20 20 <ogg src="tha_silent_partner_-_void" /> 21 21 </ambient> 22 </audio> -->22 </audio> 23 23 24 24 <!-- Keep a minimum distance of >100 to the object, otherwise the camara thinks it's in the object --> … … 30 30 <world> 31 31 <Ambient colourvalue="1,1,1" /> 32 <Skybox src="Orxonox/Star SkyBox" />32 <Skybox src="Orxonox/StarfieldSkyBox" /> 33 33 34 34 <!--Fighter camera="true" position="0,0,0" scale="10" yaw="-90" pitch="-90" mesh="assf3.mesh" forward="500" rotateupdown="200" rotaterightleft="200" looprightleft="200" /--> … … 41 41 <NPC position="100,0,400" scale="1" mesh="razor.mesh"/> 42 42 43 <Model position="200,0,500" scale="10" mesh="starship.mesh" yaw="-90" pitch="-90" />44 <Model position="-200,0,500" scale="10" mesh="drone.mesh" yaw="-90" pitch="-90" /> 43 <!-- <Model position="200,0,500" scale="10" mesh="starship.mesh" yaw="-90" pitch="-90" /> 44 <Model position="-200,0,500" scale="10" mesh="drone.mesh" yaw="-90" pitch="-90" />--> 45 45 46 46 <Model position="-200,1000,500" scale="10" mesh="hoover_body.mesh" yaw="-90" pitch="-90" /> -
code/branches/FICN/src/loader/LevelLoader.cc
r625 r655 145 145 audio::AudioManager* auMan = orxonox::Orxonox::getSingleton()->getAudioManagerPointer(); 146 146 audioElem = rootElement->FirstChildElement("audio"); 147 147 148 if (audioElem) 148 149 { … … 155 156 if (tNode->Type() == TiXmlNode::ELEMENT) 156 157 { 158 157 159 tElem = tNode->ToElement(); 158 160 std::string elemVal = tElem->Value(); 159 161 if (elemVal == "ogg") 160 162 { 163 COUT(0) << "Adding sound "<< tElem->Attribute("src") << "\n\n\n"; 164 161 165 auMan->ambientAdd(tElem->Attribute("src")); 162 166 } 163 167 } 164 168 } 169 auMan->ambientStart(); 165 170 } 166 171 } … … 194 199 mLoadOverlay->hide(); 195 200 } 201 202 196 203 COUT(0) << "Loading finished!\n\n\n\n\n"; 197 204 }
Note: See TracChangeset
for help on using the changeset viewer.