-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLoading.cpp
More file actions
57 lines (43 loc) · 1.38 KB
/
Copy pathLoading.cpp
File metadata and controls
57 lines (43 loc) · 1.38 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#include "stdafx.h"
Loading::Loading()
{
}
Loading::~Loading()
{
}
void Loading::Open()
{
m_pBackGround = new BackGround;
m_pBackGround->m_Sprite.m_Posset = Vector2(0.f, 0.f);
m_pBackGround->m_Sprite.LoadTextureFromFile("Texture/LoadingBG.png");
LoadingTexture * m_pLoadingTexture = new LoadingTexture;
m_pLoadingTexture->Init();
m_pLoadingTexture->m_Sprite.m_Position = Vector3(959.f + 110.f, 313.5f, 0.f);
SceneManager::GetInstance()->GetNowScene()->m_ObjectManager.AddObject(m_pLoadingTexture);
m_pLoadingBar = new LoadingBar;
m_pLoadingBar->Init();
m_pLoadingBar->m_Sprite.m_Position = Vector3(230.f, 800.f, 0.f);
SceneManager::GetInstance()->GetNowScene()->m_ObjectManager.AddObject(m_pLoadingBar);
//254.f 821.f 1716.f
Whale * m_pWhale = new Whale;
m_pWhale->Init();
m_pWhale->m_Sprite.m_Position = Vector3(254.f, 821.f, 0.f);
SceneManager::GetInstance()->GetNowScene()->m_ObjectManager.AddObject(m_pWhale);
BlackScreen * m_pBlackScreen = new BlackScreen;
m_pBlackScreen->Init();
SceneManager::GetInstance()->GetNowScene()->m_ObjectManager.AddObject(m_pBlackScreen);
Cursor * m_pCursor = new Cursor;
m_pCursor->Init();
SceneManager::GetInstance()->GetNowScene()->m_ObjectManager.AddObject(m_pCursor);
}
void Loading::Render()
{
m_pBackGround->m_Sprite.OnRender();
}
void Loading::Update(float deltatime)
{
}
void Loading::Close()
{
SAFE_DELETE(m_pBackGround);
}