summaryrefslogtreecommitdiffhomepage
path: root/samples/06_save_load/01_save_load_game
diff options
context:
space:
mode:
Diffstat (limited to 'samples/06_save_load/01_save_load_game')
-rw-r--r--samples/06_save_load/01_save_load_game/app/main.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/samples/06_save_load/01_save_load_game/app/main.rb b/samples/06_save_load/01_save_load_game/app/main.rb
index cc52770..2d2bc41 100644
--- a/samples/06_save_load/01_save_load_game/app/main.rb
+++ b/samples/06_save_load/01_save_load_game/app/main.rb
@@ -48,7 +48,7 @@
class TextedBasedGame
- # Contains methods needed for game to run properly.
+ # Contains methods needed for the game to run properly.
# Increments tick count by 1 each time it runs (60 times in a single second)
def tick
default
@@ -59,7 +59,7 @@ class TextedBasedGame
# Sets default values.
# The ||= ensures that a variable's value is only set to the value following the = sign
- # if the value has not already been set before. Intialization happens only in the first frame.
+ # if the value has not already been set before. Initialization happens only in the first frame.
def default
state.engine_tick_count ||= 0
state.active_module ||= :room
@@ -286,7 +286,7 @@ class TextedBasedGamePresenter
end
# instructions for users on how to add the missing method_to_call to the code
- puts "It looks like #{method_to_call} doesn't exists on TextedBasedGamePresenter. Please add this method:"
+ puts "It looks like #{method_to_call} doesn't exist on TextedBasedGamePresenter. Please add this method:"
puts "Just copy the code below and put it in the #{TextedBasedGamePresenter} class definition."
puts ""
puts "```"
@@ -345,7 +345,7 @@ class TextedBasedGamePresenter
@game
end
- # Initalizes the game and creates an empty list of buttons.
+ # Initializes the game and creates an empty list of buttons.
def initialize
@game = TextedBasedGame.new self
@button_list ||= {}