Description
The client-side scripts have been getting more cluttered over time and it's not always clear what is supposed to go where. Additionally, asynchronous code isn't always handled cleanly, causing race conditions. Some clean-up is in order.
Minimum Acceptance Criteria
[x] Asynchronous code should be handled correctly.
[x] Level managing code should be standalone (currently part of rendering core).
[x] Script inter-dependencies should be cleared up and/or resolved.
[ ] An overview on the architecture and loading dependencies should be available in the TDD.
Description The client-side scripts have been getting more cluttered over time and it's not always clear what is supposed to go where. Additionally, asynchronous code isn't always handled cleanly, causing race conditions. Some clean-up is in order.
Minimum Acceptance Criteria