Skip to content
This repository has been archived by the owner on Jul 6, 2021. It is now read-only.

Commit

Permalink
Fixed some bugs in stage change
Browse files Browse the repository at this point in the history
Stage 2 no longer restarts player score.
Pressing Enter on a stage clear returns to main menu.
  • Loading branch information
ch0m5 committed Jun 5, 2018
1 parent 8c39620 commit 5fb8a11
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Andro_Dunos/ModuleStage2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ bool ModuleStage2::Start()
App->enemies->Enable();

//Score
App->UI->teamScore = 0;
App->UI->player1Score = 0;
App->UI->player2Score = 0;
//App->UI->teamScore = 0;
//App->UI->player1Score = 0;
//App->UI->player2Score = 0;

//Music
MusicLvl2_intro = App->mixer->LoadMusic("Assets/Audio/Music/13_Stage_6 -Secret-Base-Intro.ogg");
Expand Down
2 changes: 1 addition & 1 deletion Andro_Dunos/ModuleStageClear.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ update_status ModuleStageClear::Update()
}
if (App->input->keyboard[SDL_SCANCODE_RETURN] == 1)
{
App->fade->FadeToBlack(App->stageClear, App->stage1, 1);
App->fade->FadeToBlack(App->stageClear, App->mainMenu, 1);
}


Expand Down

0 comments on commit 5fb8a11

Please sign in to comment.