Basecode for c++ games