summaryrefslogtreecommitdiffhomepage
path: root/samples/05_mouse/02_mouse_move/app
diff options
context:
space:
mode:
authorSimon Chiang <[email protected]>2021-04-23 09:46:41 -0600
committerAmir Rajan <[email protected]>2021-05-26 16:08:45 -0500
commitd5115606c96b0fe0affd72e6e0b72edce7e51042 (patch)
tree5d750d974dc947163dc4cb37a0c9bbac9266a207 /samples/05_mouse/02_mouse_move/app
parent1404fd05a99cf745c33a4316b9d5e1562083c3ae (diff)
downloaddragonruby-game-toolkit-contrib-d5115606c96b0fe0affd72e6e0b72edce7e51042.tar.gz
dragonruby-game-toolkit-contrib-d5115606c96b0fe0affd72e6e0b72edce7e51042.zip
Typo fixes
Diffstat (limited to 'samples/05_mouse/02_mouse_move/app')
-rw-r--r--samples/05_mouse/02_mouse_move/app/main.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/samples/05_mouse/02_mouse_move/app/main.rb b/samples/05_mouse/02_mouse_move/app/main.rb
index b015277..684928b 100644
--- a/samples/05_mouse/02_mouse_move/app/main.rb
+++ b/samples/05_mouse/02_mouse_move/app/main.rb
@@ -198,13 +198,13 @@ class ProtectThePuppiesFromTheZombies
state.zombies = state.zombies - killed_this_frame # remove newly killed zombies from zombies collection
state.killed_zombies += killed_this_frame # add newly killed zombies to killed zombies
- if killed_this_frame.length > 0 # if atleast one zombie was killed in the frame
+ if killed_this_frame.length > 0 # if at least one zombie was killed in the frame
state.flash_at = state.tick_count # flash_at set to the frame when the zombie was killed
# Don't forget, the rendered flash lasts for 10 frames after the zombie is killed (look at render_flash method)
end
# Sets the tick_count (passage of time) as the value of the death_at variable for each killed zombie.
- # Death_at stores the frame a zombie was killed.
+ # Death_at stores the frame where a zombie was killed.
killed_this_frame.each do |z|
z.death_at = state.tick_count
end