flashflashrevolution / rCubed

Official Flash Flash Revolution game engine.
https://www.flashflashrevolution.com
GNU Affero General Public License v3.0
31 stars 17 forks source link

Refactor UI constructors #234

Closed G-flat closed 4 years ago

G-flat commented 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.

Zageron commented 4 years ago

First glance, could totally add a constant for Main.GAME_WIDTH / 2 like Main.GAME_WIDTH_HALF