Added more menus; stub for settings, basic pause menu, fixes for multiple Game inits

This commit is contained in:
2020-01-28 19:59:42 -06:00
parent c25df59819
commit 46cffa293e
10 changed files with 83 additions and 21 deletions

View File

@@ -7,12 +7,13 @@ class IMICFPS
end
def self.inherited(subclass)
pp subclass
COMPONENTS["__pending"] ||= []
COMPONENTS["__pending"] << subclass
end
def self.initiate
return unless COMPONENTS.dig("__pending") # Already setup
COMPONENTS["__pending"].each do |klass|
component = klass.new
COMPONENTS[component.name] = component