I agree. Simply setting a magic global variable WIDTH and HEIGHT doesn't provide any insight, and confuses things more.
There is no logical reasoning why those two variables are globals, and what other globals might have special behavior.
There is no logical reasoning why those two variables are globals, and what other globals might have special behavior.
If you need magic variables, you haven't actually fixed the boilerplate problem.