globals.rb
1 # GLOBALS.rb 2 # 3 # Global variables for the game. Some will automatically update when a save is loaded 4 5 ## Auto Updating Variables 6 7 $disable_clear_function = false 8 9 ## Game Variables 10 11 $game_started = false 12 13 ## Player Variables 14 # Basic Data 15 16 $playername = "John" # the player name 17 $currentlocation = "Intro" # the current location of the player (used for saving) 18 19 # Player Stats and Items 20 21 $playerhealth = 20 22 $playermaxhealth = 20 23 24 $playerlevel = 1 25 $playerxp = 0 26 $playerxpneeded = 10 27 28 $playerinventory = { 29 items: [], 30 itemlimit: 10, # earthbound 🗣🔥 31 weapons: [], 32 armor: [], 33 money: 0, 34 } 35 36 # Constants 37 $VERSION = "v0.2.5" # how versioning works: RELEASE.MAJOR.MINOR 38 $VERSION_TYPE = "(v1 Pre-Alpha)" # make empty if game is finished