Rendering a blender game

I’ve made a physics simulation in Blender game where I can click P and watch the blocks fall down onto the plane.
I’ve clicked back onto Blender render and when I try rendering the “animation” the blocks just stay in mid-air. Is there any way I could render the Blender game animation with the physics of the blocks included?