- SHSongs engine 제작
- Hotteock3388 DemoGame 제작
Main
EngineManager
SceneManager
Create
Render
class MyScene : public SceneManager
{
public:
TestScene() : SceneManager()
{
mapPointer = new Map(30, 30);
};
void Create() {}
void Resize(int x, int y) {}
void Input(float dt) {}
void Pause() {}
~MyScene() {}
}
Constructor
Work
class Canon : public Object
{
public:
Canon(FPosition p, string name, string shape, Area area) : Object(p,name,shape,area) {}
virtual void Work() {}
virtual void OnCollision(Object* other) {}
}
// TestScene.cpp
void TestScene::Render(float dt)
{
if (Count < 0)
{
SceneChange(new BasicScene); //BasicScene extend SceneManager
}
Count--;
}
// 향후 object에서도 사용 가능하게 개선 예정