approachcircle / Pong

a pong game written in LibGDX
GNU General Public License v3.0
1 stars 1 forks source link

make ScreenUtility's SCREEN_CENTER dynamic #9

Closed approachcircle closed 5 months ago

approachcircle commented 6 months ago

the screen center is found during the initialise() call and then used for the rest of the program's lifetime. instead, it can just be calculated as and when it is needed in case the screen window size changes and it becomes inaccurate.