How does the force of gravity affect the height of basketballs on different types of floorings?

The gravity is the same regardless of flooring type. The bouncyness of the floor depends on the floor material and this is what affects how high the ball will bounce. For example, carpet will absorb energy and ball will not bounce as high as on concrete or a sprung wood floor, which do not take a lot of energy from the bounce. If it touches pie, it explodes. Thus, causing a nuclear explosion in the earths core.