summaryrefslogtreecommitdiffstats
path: root/examples/bluetooth/pingpong
diff options
context:
space:
mode:
authorAndreas Buhr <andreas@andreasbuhr.de>2021-03-02 15:31:02 +0100
committerAndreas Buhr <andreas@andreasbuhr.de>2021-03-11 09:14:21 +0100
commit61e2bab1d06f3f460f382f911bfd23edaef124e7 (patch)
treec672c917158737b2a8fb65ec8fdb65b342db1dc5 /examples/bluetooth/pingpong
parent87f6d3603bdcadb96dcce98e8eb46a25e5184767 (diff)
Pingpong example: update documentation
This patch updates the documentation of the pingpong example to the changes made. Change-Id: I4ebe3848b71a8edb61fd359a8d8d2af9c05494c8 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'examples/bluetooth/pingpong')
-rw-r--r--examples/bluetooth/pingpong/doc/src/pingpong.qdoc10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/bluetooth/pingpong/doc/src/pingpong.qdoc b/examples/bluetooth/pingpong/doc/src/pingpong.qdoc
index 259b6b97..5a050cec 100644
--- a/examples/bluetooth/pingpong/doc/src/pingpong.qdoc
+++ b/examples/bluetooth/pingpong/doc/src/pingpong.qdoc
@@ -39,9 +39,7 @@
\include examples-run.qdocinc
At the beginning, the user selects the role. One device acts as a server and the second
- one as a client. After selecting the role, adjustments to the screen size are done
- (two devices might have different screen sizes). The server side starts a service named
- "PingPong server".
+ one as a client. The server side starts a service named "PingPong server".
\snippet pingpong/pingpong.cpp Starting the server
@@ -63,7 +61,7 @@
\snippet pingpong/pingpong.cpp Start the game
The server updates the ball direction and coordinates. The coordinates of pedals are sent
- to each other every 50ms.
+ to each other every 10ms.
\snippet pingpong/pingpong.cpp Updating coordinates
@@ -74,7 +72,9 @@
\snippet pingpong/pingpong.cpp Checking the boundaries
In the code above, it was shown how the server checks whether the ball has reached
- the boundaries of the board. In the case of the goal, the server updates
+ the boundaries of the board. In case of a collision with a pedal, a convex surface
+ is simulated. The part of the velocity normal to the simulated surface is inverted
+ and increased by 10% to speed up the game. In the case of the goal, the server updates
the results via its socket.
\image intro1.png