changed engine.deltaTime to float of seconds elapsed since last update