summaryrefslogtreecommitdiffhomepage
path: root/samples/01_rendering_basics/01_labels/app/main.rb
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/01_rendering_basics/01_labels/app/main.rb
parent1404fd05a99cf745c33a4316b9d5e1562083c3ae (diff)
downloaddragonruby-game-toolkit-contrib-d5115606c96b0fe0affd72e6e0b72edce7e51042.tar.gz
dragonruby-game-toolkit-contrib-d5115606c96b0fe0affd72e6e0b72edce7e51042.zip
Typo fixes
Diffstat (limited to 'samples/01_rendering_basics/01_labels/app/main.rb')
-rw-r--r--samples/01_rendering_basics/01_labels/app/main.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/samples/01_rendering_basics/01_labels/app/main.rb b/samples/01_rendering_basics/01_labels/app/main.rb
index c3e1afc..8a5e866 100644
--- a/samples/01_rendering_basics/01_labels/app/main.rb
+++ b/samples/01_rendering_basics/01_labels/app/main.rb
@@ -2,12 +2,12 @@
APIs listing that haven't been encountered in a previous sample apps:
-- args.outputs.labels: An array. Values in this array generate labels
+- args.outputs.labels: An array. Values in this array generate labels on
the screen.
- args.grid.(left|right|top|bottom): Pixel value for the boundaries of the virtual
720 p screen (Dragon Ruby Game Toolkits's virtual resolution is always 1280x720).
- Numeric#shift_(left|right|up|down): Shifts the Numeric in the correct direction
- by adding or subracting.
+ by adding or subtracting.
=end
@@ -27,7 +27,7 @@ APIs listing that haven't been encountered in a previous sample apps:
# The tick method is called by DragonRuby every frame
# args contains all the information regarding the game.
def tick args
- tick_instructions args, "Sample app shows different version of label sizes and alignments. And how to use hashes instead of arrays."
+ tick_instructions args, "Sample app shows different versions of label sizes and alignments. And how to use hashes instead of arrays."
# Here are some examples of simple labels, with the minimum number of parameters
# Note that the default values for the other parameters are 0, except for Alpha which is 255 and Font Style which is the default font
args.outputs.labels << [400, 620, "Here is a label with just an x, y, and text"]