rblackmore / IGE.TankShooter

Tank Shooty Game
0 stars 0 forks source link

Prevent camera from scrolling past the edge of the map. #14

Closed pserwylo closed 10 months ago

pserwylo commented 10 months ago

Involves removing the funky "smooth scroll camera to tank, but only bother moving it if the tank moved more than a certain distance from the camera's preferred area". This was a nice-to-have at best, and became tricky to get right when we forced the camera to stay in the bounds of the map.

Also involves increasing the map size so that the camera can stay within bounds when zoomed out. This in turn stuffs up pathfinding performance, so more optimisations necceary there.