hey it works
Jun. 26th, 2024 01:50 pmI'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.