63b405136463fe6ba6c403e11d9e82df8569ddc3
Stefan Schuermans add tetris doc

Stefan Schuermans authored 5 years ago

1) <html>
2)   <head>
3)     <title>Blinker - Tetris</title>
4)   </head>
5)   <body>
6)     <h1>Blinker - Tetris</h1>
7)     <p>
8)       The tetris module provides a tetris game on demand.
9)       If starts when the operator connection for the player is established.
10)     </p>
11)     <h2>Keys</h2>
12)     <p>
13)       The game is controlled via an operator connection, i.e., via telephone
14)       keys. The key have the following functions:
15)       <table>
16)         <tr><td><b>key</b></td>
17)             <td width="2em"></td>
18)             <td><b>description</b></td></tr>
19)         <tr><td><code>#</code></td>
20)             <td></td>
21)             <td>leave game</td></tr>
22)         <tr><td><code>*</code></td>
23)             <td></td>
24)             <td>play start sound to inform user about the active game</td></tr>
25)         <tr><td><code>1</code></td>
26)             <td></td>
27)             <td>rotate falling stone left (counter-clock-wise)</td></tr>
28)         <tr><td><code>2</code> / <code>3</code></td>
29)             <td></td>
30)             <td>rotate falling stone right (clock-wise)</td></tr>
31)         <tr><td><code>4</code></td>
32)             <td></td>
33)             <td>move falling stone to the left</td></tr>
34)         <tr><td><code>6</code></td>
35)             <td></td>
36)             <td>move falling stone to the right</td></tr>
37)         <tr><td><code>8</code></td>
38)             <td></td>
39)             <td>drop stone</td></tr>
40)       </table>
41)     </p>
42)     <h2>Configuration</h2>
43)     <p>
44)       The configuration of the tetris module with name <code>NAME</code>
45)       is located in the <code>tetrises/NAME</code> subdirectory.
46)     </p>
47)     <h3>Colors</h3>
48)     <p>
49)       The colors of the background and of the stones are configurable.
50)       They are given in web notation, i.e., as 6 hexadecimal digits -
51)       2 digits for read, green and blue.
52)       The color is automatically converted to the selected format
53)       (i.e. number of channels and number of colors).
54)       Each color is defined in the appropriate file. If the file is missing
55)       or contains an invalid color code, the respective element is not drawn
56)       on the frames.
57)       The following color files exist:
58)       <table>
59)         <tr><td><b>file name</b></td>
60)             <td width="2em"></td>
61)             <td><b>element</b></td></tr>
62)         <tr><td><code>backgroundColor</code></td>
63)             <td></td>
64)             <td>background of the tetris field</td></tr>
Stefan Schuermans different colors for tetris...

Stefan Schuermans authored 5 years ago

65)         <tr><td><code>stoneIColor</code></td>
Stefan Schuermans add tetris doc

Stefan Schuermans authored 5 years ago

66)             <td></td>
Stefan Schuermans different colors for tetris...

Stefan Schuermans authored 5 years ago

67)             <td>stones of type "I" (falling and fixed)</td></tr>
68)         <tr><td><code>stoneJColor</code></td>
69)             <td></td>
70)             <td>stones of type "J" (falling and fixed)</td></tr>
71)         <tr><td><code>stoneLColor</code></td>
72)             <td></td>
73)             <td>stones of type "L" (falling and fixed)</td></tr>
74)         <tr><td><code>stoneOColor</code></td>
75)             <td></td>
76)             <td>stones of type "O" (falling and fixed)</td></tr>
77)         <tr><td><code>stoneSColor</code></td>
78)             <td></td>
79)             <td>stones of type "S" (falling and fixed)</td></tr>
80)         <tr><td><code>stoneTColor</code></td>
81)             <td></td>
82)             <td>stones of type "T" (falling and fixed)</td></tr>
83)         <tr><td><code>stoneZColor</code></td>
84)             <td></td>
85)             <td>stones of type "Z" (falling and fixed)</td></tr>