Goal:
Pixel-perfect display of a specific region in the room
Problem:
Everything I tried so far doesn't work and only makes me more confused :c
Elaboration:
My game takes place entirely in a 2000x2000 room, the "camera" (using that word loosely here because the technical definition of that is super complicated) should only show a rectangular part of the room (centered at 1000,1000) whose width and height is the same as the game window's size (or full screen size, if possible).
I tried to mess with the variables and functions with the words "view" and "camera" in them, but, the more I looked the more complicated things got. At this point I'd really appreciate it if someone could just write a block of code here that does the above, I'll even credit you in the final game, if I get that far. Thanks in advance
Pixel-perfect display of a specific region in the room
Problem:
Everything I tried so far doesn't work and only makes me more confused :c
Elaboration:
My game takes place entirely in a 2000x2000 room, the "camera" (using that word loosely here because the technical definition of that is super complicated) should only show a rectangular part of the room (centered at 1000,1000) whose width and height is the same as the game window's size (or full screen size, if possible).
I tried to mess with the variables and functions with the words "view" and "camera" in them, but, the more I looked the more complicated things got. At this point I'd really appreciate it if someone could just write a block of code here that does the above, I'll even credit you in the final game, if I get that far. Thanks in advance