summaryrefslogtreecommitdiffhomepage
path: root/samples/07_advanced_rendering
diff options
context:
space:
mode:
authorOlly Mills <[email protected]>2021-02-17 01:32:09 +0000
committerAmir Rajan <[email protected]>2021-02-17 18:22:39 -0800
commitcb51bc152392ae8baec4f2584ec0500f7e8a023b (patch)
treefe1ce1c21c276ebc01f39455b6e1b04d47be5cd8 /samples/07_advanced_rendering
parentf923bcb6f502cee26b72208499aaa33e0020a0ed (diff)
downloaddragonruby-game-toolkit-contrib-cb51bc152392ae8baec4f2584ec0500f7e8a023b.tar.gz
dragonruby-game-toolkit-contrib-cb51bc152392ae8baec4f2584ec0500f7e8a023b.zip
removed old references to documentation from all sample apps
Diffstat (limited to 'samples/07_advanced_rendering')
-rw-r--r--samples/07_advanced_rendering/03_render_target_viewports/app/main.rb7
-rw-r--r--samples/07_advanced_rendering/04_render_primitive_hierarchies/app/main.rb2
-rw-r--r--samples/07_advanced_rendering/05_render_primitives_as_hash/app/main.rb5
3 files changed, 1 insertions, 13 deletions
diff --git a/samples/07_advanced_rendering/03_render_target_viewports/app/main.rb b/samples/07_advanced_rendering/03_render_target_viewports/app/main.rb
index dbceab3..b748ffa 100644
--- a/samples/07_advanced_rendering/03_render_target_viewports/app/main.rb
+++ b/samples/07_advanced_rendering/03_render_target_viewports/app/main.rb
@@ -48,12 +48,10 @@
- ARRAY#intersect_rect?: Returns true or false depending on if the two rectangles intersect.
- args.inputs.mouse.click: This property will be set if the mouse was clicked.
- For more information about the mouse, go to mygame/documentation/07-mouse.md.
- 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).
- For more information about the keyboard, go to mygame/documentation/06-keyboard.md.
- args.state.labels:
The parameters for a label are
@@ -63,7 +61,6 @@
4. the alignment
5. the color (red, green, and blue saturations)
6. the alpha (or transparency)
- For more information about labels, go to mygame/documentation/02-labels.md.
- args.state.lines:
The parameters for a line are
@@ -71,7 +68,6 @@
2. the ending position (x2, y2)
3. the color (red, green, and blue saturations)
4. the alpha (or transparency)
- For more information about lines, go to mygame/documentation/04-lines.md.
- args.state.solids (and args.state.borders):
The parameters for a solid (or border) are
@@ -80,7 +76,6 @@
3. the height (h)
4. the color (r, g, b)
5. the alpha (or transparency)
- For more information about solids and borders, go to mygame/documentation/03-solids-and-borders.md.
- args.state.sprites:
The parameters for a sprite are
@@ -90,7 +85,7 @@
4. the image path
5. the angle
6. the alpha (or transparency)
- For more information about sprites, go to mygame/documentation/05-sprites.md.
+
=end
# This sample app shows different objects that can be used when making games, such as labels,
diff --git a/samples/07_advanced_rendering/04_render_primitive_hierarchies/app/main.rb b/samples/07_advanced_rendering/04_render_primitive_hierarchies/app/main.rb
index aedd830..7f345ac 100644
--- a/samples/07_advanced_rendering/04_render_primitive_hierarchies/app/main.rb
+++ b/samples/07_advanced_rendering/04_render_primitive_hierarchies/app/main.rb
@@ -39,7 +39,6 @@
Here is an example of a (red) border or solid definition:
[100, 100, 400, 500, 255, 0, 0]
It will be a solid or border depending on if it is added to args.outputs.solids or args.outputs.borders.
- For more information about solids and borders, go to mygame/documentation/03-solids-and-borders.md.
- args.outputs.sprites: An array. The values generate a sprite.
The parameters for sprites are
@@ -50,7 +49,6 @@
Here is an example of a sprite definition:
[100, 100, 400, 500, 'sprites/dragonruby.png']
- For more information about sprites, go to mygame/documentation/05-sprites.md.
=end
diff --git a/samples/07_advanced_rendering/05_render_primitives_as_hash/app/main.rb b/samples/07_advanced_rendering/05_render_primitives_as_hash/app/main.rb
index f7e5bac..53e0f3d 100644
--- a/samples/07_advanced_rendering/05_render_primitives_as_hash/app/main.rb
+++ b/samples/07_advanced_rendering/05_render_primitives_as_hash/app/main.rb
@@ -16,23 +16,18 @@
- args.outputs.sprites: An array. The values generate a sprite.
The parameters are [X, Y, WIDTH, HEIGHT, PATH, ANGLE, ALPHA, RED, GREEN, BLUE]
- For more information about sprites, go to mygame/documentation/05-sprites.md.
- args.outputs.labels: An array. The values generate a label.
The parameters are [X, Y, TEXT, SIZE, ALIGNMENT, RED, GREEN, BLUE, ALPHA, FONT STYLE]
- For more information about labels, go to mygame/documentation/02-labels.md.
- args.outputs.solids: An array. The values generate a solid.
The parameters are [X, Y, WIDTH, HEIGHT, RED, GREEN, BLUE, ALPHA]
- For more information about solids, go to mygame/documentation/03-solids-and-borders.md.
- args.outputs.borders: An array. The values generate a border.
The parameters are the same as a solid.
- For more information about borders, go to mygame/documentation/03-solids-and-borders.md.
- args.outputs.lines: An array. The values generate a line.
The parameters are [X1, Y1, X2, Y2, RED, GREEN, BLUE]
- For more information about labels, go to mygame/documentation/02-labels.md.
=end