You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 24, 2025. It is now read-only.
Note: Vertex arrays for GUI elements are global. This is extremely ugly, should be replaced by some Gui object owned by renderer. Code in Room should be cleaned up, too.
General Rules
Objects come in two categories. Type one is global, with lifetime from initializion at app startup to app exit. There is no need for cleaning them up them (though the code does it anyway; not sure why). The other is owned by the currently loaded level. Lifetime is either from level loading to level unload (for level transition or app end), or from specific gameplay events (Lua) to another one of those. There is no need for any shared ownership.