diff options
| author | arjun <[email protected]> | 2021-06-19 15:49:47 +0530 |
|---|---|---|
| committer | Amir Rajan <[email protected]> | 2021-10-11 18:20:51 -0500 |
| commit | e4dc7720454d70827f053c0ea47ba864ac176d34 (patch) | |
| tree | fc1c749358cd7dfc0c2d2082663e82b72feae11b | |
| parent | 789dd8471d32f8cac7e26bb6c2beecf33b6a24c6 (diff) | |
| download | dragonruby-game-toolkit-contrib-e4dc7720454d70827f053c0ea47ba864ac176d34.tar.gz dragonruby-game-toolkit-contrib-e4dc7720454d70827f053c0ea47ba864ac176d34.zip | |
[samples/mouse docs] fixed typo, method invocation
| -rw-r--r-- | samples/05_mouse/04_coordinate_systems/app/main.rb | 4 |
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) |
