Added plants. Added game time management.
This commit is contained in:
@@ -113,7 +113,7 @@ int FarmlandsGame::run()
|
||||
{
|
||||
// Update elapsed time
|
||||
Uint32 now = SDL_GetTicks();
|
||||
GameState::current().elapsedTime = (now - m_time) * 0.001f;
|
||||
GameState::current().deltaTime = (now - m_time) * 0.001f;
|
||||
m_time = now;
|
||||
|
||||
SDL_Event event;
|
||||
|
Reference in New Issue
Block a user