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

December 2025

S M T W T F S
 123456
789101112 13
14151617181920
21222324252627
28293031   

Syndicate

RSS Atom

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Dec. 17th, 2025 02:36 am
Powered by Dreamwidth Studios