1
SFML projects / Freighter - w/Source (Updated 11/04)
« on: November 09, 2011, 12:10:11 am »
Oh, thanks posva, I'll check those out!
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
if(!iter->GetStatus()){
iter = soundbox.erase(iter);
}else{
++iter;
}
if(!iter->GetStatus())
PlaySound(loads.MyBuffer);
void Game::PlaySound(sf::SoundBuffer& buffer){
soundbox.push_back(sf::Sound(buffer));
soundbox[soundbox.size()-1].Play();
}
void Game::DestroySounds(){
for(std::vector<sf::Sound>::iterator iter = soundbox.begin(); iter != soundbox.end(); ){
if(!iter->GetStatus()){
iter = soundbox.erase(iter);
}else{
++iter;
}
}
}
if(!lasersound.GetStatus())
lasersound.Play();
-static-libgcc
-static-libstdc++
case sf::Event::MouseButtonPressed:
if(event.MouseButton.Button == sf::Mouse::Left){
laserbox.push_back(Laser(this));
} break;
for(std::vector<Laser>::iterator iter = laserbox.begin(); iter != laserbox.end(); ){
iter->Update();
Window.Draw(*iter);
if(iter->Alive == false)
iter = laserbox.erase(iter);
else
++iter;
}