notsonormal: (Default)

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.

Profile

notsonormal: (Default)
tan

August 2025

S M T W T F S
     12
3456789
10111213141516
17181920 212223
24252627282930
31      

Syndicate

RSS Atom

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Sep. 14th, 2025 12:08 am
Powered by Dreamwidth Studios