notsonormal: (Default)
[personal profile] notsonormal

I've finally made a scrolling function, so now my player can scroll through a 1920x720 map. How did I do it? Idk I just made another SDL_Rect called cameraRect and turn it into the x and y of the player after taking input from the user and subtracting it to half of the window's height and width. How does that work? Again idk, it's working and that's all that matters! Now I just have to fix the distortion on the map, it gets stretched in and out. 20 mins max I'll figure this out fsfsfs.

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

Profile

notsonormal: (Default)
tan

March 2025

S M T W T F S
      1
2 345678
9101112131415
16171819202122
23242526272829
3031     

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 10th, 2025 11:51 pm
Powered by Dreamwidth Studios