Skip to content

BudlePlay/HiEngine-basic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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에서도 사용 가능하게 개선 예정

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages