end condition: change scene only if scene has a player

This commit is contained in:
arthur.jamet
2021-06-15 11:28:24 +02:00
parent 2ec012c567
commit 005ddecf53
4 changed files with 12 additions and 3 deletions
+2 -1
View File
@@ -20,7 +20,8 @@ namespace BBM
{SoundComponent::JUMP, "assets/sounds/click.ogg"}
};
scene->addEntity("Control entity")
addMenuControl(*scene);
scene->addEntity("Audio ressources")
.addComponent<MusicComponent>("assets/musics/music_result.ogg")
.addComponent<SoundComponent>(sounds);
scene->addEntity("background")