Refactored a few more things to use general environment variables for e.g. screensize
Minor camera logic fix. I'll get back to this refactor later