You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After a little bit of discussion with @italoseara, we've decided that the scaling type probably should be like this:
instead of a "fit inside window" type (the one that usually has black bars on top and bottom). Not sure if it wil go well for extra large screens, but let's try it.
I discovered a way to make Camera System, im making in my project 'pgk'.
Basically the Camera object has x, y, size(w, h) and a pygame surface of its size. At the end of the whole frame you draw the camera surface on the screen using 'pygame.transform.scale' and 'destSurf' to optimize (Without 'destSurf', CPU usage is 2x).
you control x, y and size, with a scale, determined as virtual_xy / scale for x, y, and screen_size_wh / scale for screen width and height.
Currently, the screen size is fixed. Scaling would be a good idea.
The text was updated successfully, but these errors were encountered: