Framework is an software abstraction where generic functionality can be selectively changed by user code, thus providing application specific behaviour.
Complex, specialized game frameworks (usually shipped with a set of additional tools and libraries) are called game engines. Many game engines are built on top of more generic game framewroks.