finished demo intro

This commit is contained in:
h4570
2022-07-31 00:49:42 +02:00
parent bc1ac1b4a3
commit 347fdb240b
3 changed files with 110 additions and 5 deletions
+2 -2
View File
@@ -21,7 +21,7 @@ using Tyra::FileUtils;
namespace Demo {
IntroState::IntroState(Engine* t_engine)
: State(t_engine), stateManager(STATE_PRESS_KEY) {
: State(t_engine), stateManager(STATE_PS2DEV) {
state = STATE_INTRO;
_wantFinish = false;
}
@@ -32,7 +32,7 @@ void IntroState::onStart() {
engine->audio.loadSong(FileUtils::fromCwd("intro/intro.wav"));
engine->audio.setSongLoop(false);
engine->audio.setSongVolume(80);
// engine->audio.playSong();
engine->audio.playSong();
stateManager.add(new IntroPs2DevState(engine));
stateManager.add(new IntroTyraState(engine));