c++ - Quadtree and size of region in constructor -
i reading nice tutorial quadtree this site , question.
when create quadtree have pass in constructor bounds of screen, if map's size 10000 x 10000px , game screen 1280 x 720px, should pass?
quadtree quad = new quadtree(0, new rectangle(0,0,600,600));
so in example screen region 600 x 600px. , it's working until player go further 600x600
i'm using c++ sfml 2.0, sf::view center player position.
you should pass bounds of whole map, regardless of whether parts of region can seen or not.
Comments
Post a Comment