Stefan Schuermans
sound support for pong game
Stefan Schuermans commited fb06c1c at 2019-07-07 12:55:58
<html>
<head>
<title>Blinker - Pong</title>
</head>
<body>
<h1>Blinker - Pong</h1>
<p>
The pong module provides a pong game on demand.
There are two potential operator connections - one for the left player
and one for the right player.
The game starts as soon as the first player joins.
In case only one player is in the game, the other side is played
by the computer.
</p>
<h2>Configuration</h2>
<p>
The configuration of the pong module with name <code>NAME</code>
is located in the <code>pongs/NAME</code> subdirectory.
</p>
<h3>Colors</h3>
<p>
The colors of the different element of a pong field are configurable.
All of them are given in web notation, i.e., as 6 hexadecimal digits -
2 digits for read, green and blue.
The color is automatically converted to the selected format
(i.e. number of channels and number of colors).
Each color is defined in the appropriate file. If the file is missing
or contains an invalid color code, the respective element is not drawn
on the frames.
The following color files exist:
<table>
<tr><td><b>file name</b></td>
<td width="2em"></td>
<td><b>element</b></td></tr>
<tr><td><code>backgroundColor</code></td>
<td></td>
<td>background of the pong field</td></tr>
<tr><td><code>ballColor</code></td>
<td></td>
<td>pong ball</td></tr>
<tr><td><code>computerColor</code></td>
<td></td>
<td>pad played by the computer</td></tr>
<tr><td><code>goalColor</code></td>
<td></td>
<td>game score when a goal has been scored</td></tr>
<tr><td><code>lineColor</code></td>
<td></td>
<td>line in the middle of the field</td></tr>
<tr><td><code>padColor</code></td>
<td></td>
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX