Added plants. Added game time management.

This commit is contained in:
2016-12-09 22:33:47 +02:00
parent c12a8ede5a
commit 2bd8605711
30 changed files with 645 additions and 87 deletions

View File

@@ -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;