how to create an object in real time by extruding
You can't. The BGE does not support mesh creation. 

You can modify the positions of vertexes (= mesh deformation). The vertices needs to exist already.