Skip to content

Latest commit

 

History

History
86 lines (59 loc) · 1.23 KB

README.md

File metadata and controls

86 lines (59 loc) · 1.23 KB

BWE

BlackWindowEngine

검은 창 엔진

contributer

Example

DemoGame GIF

사용 방법

LifeCycle

Main

EngineManager

SceneManager

SceneManager LifeCycle

Create

Render

How to use

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() {}
}

Object

Constructor

Work

How to use

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) {}
}

SceneChange

// TestScene.cpp
void TestScene::Render(float dt)
{
	if (Count < 0)
	{
		SceneChange(new BasicScene);		//BasicScene extend SceneManager
	}
	Count--;
}
// 향후 object에서도 사용 가능하게 개선 예정