diff options
| author | Simon Chiang <[email protected]> | 2021-04-23 09:46:41 -0600 |
|---|---|---|
| committer | Amir Rajan <[email protected]> | 2021-05-26 16:08:45 -0500 |
| commit | d5115606c96b0fe0affd72e6e0b72edce7e51042 (patch) | |
| tree | 5d750d974dc947163dc4cb37a0c9bbac9266a207 /samples/06_save_load/01_save_load_game/app/main.rb | |
| parent | 1404fd05a99cf745c33a4316b9d5e1562083c3ae (diff) | |
| download | dragonruby-game-toolkit-contrib-d5115606c96b0fe0affd72e6e0b72edce7e51042.tar.gz dragonruby-game-toolkit-contrib-d5115606c96b0fe0affd72e6e0b72edce7e51042.zip | |
Typo fixes
Diffstat (limited to 'samples/06_save_load/01_save_load_game/app/main.rb')
| -rw-r--r-- | samples/06_save_load/01_save_load_game/app/main.rb | 8 |
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 ||= {} |
