Added pause menu, refreshed solo lobby menu, added settings for storing player's color and team, misc.

This commit is contained in:
2021-01-01 19:20:05 -06:00
parent 5f301337b4
commit f3fccc8b24
13 changed files with 145 additions and 54 deletions

View File

@@ -12,6 +12,8 @@ class IMICRTS
def self.save_defaults
hash = {
player_name: "Rookie",
player_color: :orange,
player_team: 1,
player_default_map_spawn: 0,
default_map: "test_map",
@@ -43,7 +45,7 @@ class IMICRTS
end
def self.save!
File.open(Setting.file_path, "w") {|f| f.write(JSON.dump(@store))}
File.open(Setting.file_path, "w") { |f| f.write(JSON.dump(@store)) }
end
end
end