summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--samples/05_mouse/04_coordinate_systems/app/main.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/samples/05_mouse/04_coordinate_systems/app/main.rb b/samples/05_mouse/04_coordinate_systems/app/main.rb
index fcfa090..cbf3329 100644
--- a/samples/05_mouse/04_coordinate_systems/app/main.rb
+++ b/samples/05_mouse/04_coordinate_systems/app/main.rb
@@ -2,7 +2,7 @@
APIs listing that haven't been encountered in previous sample apps:
- - args.inputs.mouse.click.position: Coordinates of the mouse's position on the screen.
+ - args.inputs.mouse.position: Coordinates of the mouse's position on the screen.
Unlike args.inputs.mouse.click.point, the mouse does not need to be pressed down for
position to know the mouse's coordinates.
For more information about the mouse, go to mygame/documentation/07-mouse.md.
@@ -43,7 +43,7 @@ def tick args
# ensure that the outputs don't overlap each other. Try removing them and see what happens.
pos = args.inputs.mouse.position # stores coordinates of mouse's position
args.outputs.labels << [pos.x + 10, pos.y + 10, "#{pos}"] # outputs label of coordinates
- args.outputs.solids << [pos.x - 2, pos.y - 2, 5, 5] # outputs small blackk box placed where mouse is hovering
+ args.outputs.solids << [pos.x - 2, pos.y - 2, 5, 5] # outputs small black box placed where mouse is hovering
button = [0, 0, 370, 50] # sets definition of toggle button
args.outputs.borders << button # outputs button as border (not filled in)