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/02_input_basics | |
| parent | 1404fd05a99cf745c33a4316b9d5e1562083c3ae (diff) | |
| download | dragonruby-game-toolkit-contrib-d5115606c96b0fe0affd72e6e0b72edce7e51042.tar.gz dragonruby-game-toolkit-contrib-d5115606c96b0fe0affd72e6e0b72edce7e51042.zip | |
Typo fixes
Diffstat (limited to 'samples/02_input_basics')
| -rw-r--r-- | samples/02_input_basics/01_keyboard/app/main.rb | 4 | ||||
| -rw-r--r-- | samples/02_input_basics/03_mouse_point_to_rect/app/main.rb | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/samples/02_input_basics/01_keyboard/app/main.rb b/samples/02_input_basics/01_keyboard/app/main.rb index 3c5e1b4..d0321ef 100644 --- a/samples/02_input_basics/01_keyboard/app/main.rb +++ b/samples/02_input_basics/01_keyboard/app/main.rb @@ -4,7 +4,7 @@ APIs listing that haven't been encountered in a previous sample apps: - args.inputs.keyboard.key_up.KEY: The value of the properties will be set to the frame that the key_up event occurred (the frame correlates - to args.state.tick_count). Otherwise the value will be nil. + to args.state.tick_count). Otherwise the value will be nil. - args.state.PROPERTY: The state property on args is a dynamic structure. You can define ANY property here with ANY type of arbitrary nesting. Properties defined on args.state will be retained @@ -28,7 +28,7 @@ def tick args args.outputs.labels << [460, row_to_px(args, 2), "Keyboard input: args.inputs.keyboard.key_up.h", small_font] args.outputs.labels << [460, row_to_px(args, 3), "Press \"h\" on the keyboard.", small_font] - # Input on a specifc key can be found through args.inputs.keyboard.key_up followed by the key + # Input on a specific key can be found through args.inputs.keyboard.key_up followed by the key if args.inputs.keyboard.key_up.h args.state.h_pressed_at = args.state.tick_count end diff --git a/samples/02_input_basics/03_mouse_point_to_rect/app/main.rb b/samples/02_input_basics/03_mouse_point_to_rect/app/main.rb index 7dd627f..1e30943 100644 --- a/samples/02_input_basics/03_mouse_point_to_rect/app/main.rb +++ b/samples/02_input_basics/03_mouse_point_to_rect/app/main.rb @@ -36,7 +36,7 @@ APIs that haven't been encountered in a previous sample apps: # This is useful to determine if a click occurred in a rect def tick args - tick_instructions args, "Sample app shows how to determing if a click happened inside a rectangle." + tick_instructions args, "Sample app shows how to determine if a click happened inside a rectangle." x = 460 |
