Added a Initialize function for systems.
This commit is contained in:
@@ -47,9 +47,13 @@ Game::Game(int argc, char* argv[])
|
||||
m_SystemPipeline->AddSystem<RaptorCopterSystem>();
|
||||
m_SystemPipeline->AddSystem<PlayerSystem>();
|
||||
|
||||
|
||||
|
||||
m_LastTime = glfwGetTime();
|
||||
|
||||
testIntialize();
|
||||
|
||||
m_SystemPipeline->Initialize();
|
||||
}
|
||||
|
||||
Game::~Game()
|
||||
|
||||
@@ -16,7 +16,7 @@ void PlayerSystem::Update(World * world, ComponentWrapper & player, double dt)
|
||||
|
||||
bool PlayerSystem::OnKeyDown(const Events::KeyDown & event)
|
||||
{
|
||||
if (event.KeyCode == GLFW_KEY_P) {
|
||||
if (event.KeyCode == GLFW_KEY_UP) {
|
||||
m_Direction.z == -1;
|
||||
}
|
||||
if (event.KeyCode == GLFW_KEY_LEFT) {
|
||||
|
||||
Reference in New Issue
Block a user