a game of mine that is finally being finished (most of my games never get finished)
1# GLOBALS.rb
2#
3# Global variables for the game. Some will automatically update when a save is loaded
4
5# rubocop:disable all
6
7## Auto Updating Variables
8
9$disable_clear_function = false
10
11## Game Variables
12
13# if there is a game started, this is true (this is obvious but fuck it)
14$game_started = false
15
16# enables the expert input mode (check issue #8 in the main repo for more info)
17$game_expert_mode = false
18
19# sets the game difficulty
20$game_difficulty = 1 # 0-2: Easy, Normal, Hard
21$game_difficulty_names = %w[Easy Normal Hard]
22
23## Player Variables
24# Basic Data
25
26$playername = 'John' # the player name
27$currentlocation = 'Intro' # the current location of the player (used for saving)
28
29# Player Stats and Items
30
31$playerhealth = 20 # player health
32$playermaxhealth = 20 # player max health
33
34$playerlevel = 1 # player level
35$playerxp = 0 # player xp
36$playerxpneeded = 10 # how much xp is needed to level up
37
38$playerinventory = {
39 items: [], # items the player has
40 itemlimit: 10, # earthbound 🗣🔥 (lol why did i put that - 7/23/25)
41 weapons: [], # the weapons the player has (no limit because you can never not have too many weapons, also lazyness)
42 armor: [], # the armor the player has (no limit because yeah yeah yeah you get the point)
43 money: 0 # cashhhh
44}
45
46## Constants
47
48# this is for game testing, it's recommended to turn this off if you don't want to cheat, but I'm not gonna stop you...
49$GAME_DEBUG = true
50
51$VERSION = 'v0.2.6' # how versioning works: RELEASE.MAJOR.MINOR
52$VERSION_TYPE = '(v1 Pre-Alpha)' # make empty if game is finished