Closed G-flat closed 4 years ago
Rewrites several UI constructors to accept parent, x and y parameters, and an event listener parameter for a select few. This considerably reduces code verbosity and makes creating interfaces simpler in the future.
parent
x
y
First glance, could totally add a constant for Main.GAME_WIDTH / 2 like Main.GAME_WIDTH_HALF
Main.GAME_WIDTH / 2
Main.GAME_WIDTH_HALF
Rewrites several UI constructors to accept
parent
,x
andy
parameters, and an event listener parameter for a select few. This considerably reduces code verbosity and makes creating interfaces simpler in the future.