-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEndingScene.cpp
More file actions
41 lines (33 loc) · 895 Bytes
/
EndingScene.cpp
File metadata and controls
41 lines (33 loc) · 895 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#include "EndingScene.h"
#include <DxLib.h>
#include "SceneBase.h"
#include "GameUtility.h"
#include "framework.h"
#include "TypeManager.h"
#include "SceneManager.h"
namespace {
TypeManager& typeManager = TypeManager::GetInstance();
}
EndingScene::EndingScene()
: SceneBase("EndingScene") {
}
EndingScene::~EndingScene()
{
}
void EndingScene::Init()
{
}
void EndingScene::Update() {
if (timer > 300) {
SceneManager::GetInstance().ChangeScene("WaitingScene");
typeManager.correctCount = 0;
timer = 0;
typeManager.loadWord();
}
timer++;
}
void EndingScene::Draw() {
GameUtility::DrawFix2DText(CENTER, Screen::WIDTH / 2, Screen::HEIGHT / 2, 40, "ƒQ[ƒ€I—¹!", Color::WHITE, Color::BLACK);
GameUtility::DrawFix2DText(CENTER, Screen::WIDTH / 2, (Screen::HEIGHT / 2) + 60, 30,
"³‰ð”: " + std::to_string(typeManager.getCorrectCount()) + "Œê", Color::WHITE, Color::BLACK);
}