3b1dc7db82487b98b9c6b4b180b80c44f986f0d4
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 make tetris stones change c...

Stefan Schuermans authored 5 years ago

65)         <tr><td><code>fixedIColor</code></td>
66)             <td></td>
67)             <td>fixed stones of type "I"</td></tr>
68)         <tr><td><code>fixedJColor</code></td>
69)             <td></td>
70)             <td>fixed stones of type "J"</td></tr>
71)         <tr><td><code>fixedLColor</code></td>
72)             <td></td>
73)             <td>fixed stones of type "L"</td></tr>
74)         <tr><td><code>fixedOColor</code></td>
75)             <td></td>
76)             <td>fixed stones of type "O"</td></tr>
77)         <tr><td><code>fixedSColor</code></td>
78)             <td></td>
79)             <td>fixed stones of type "S"</td></tr>
80)         <tr><td><code>fixedTColor</code></td>
81)             <td></td>
82)             <td>fixed stones of type "T"</td></tr>
83)         <tr><td><code>fixedZColor</code></td>
84)             <td></td>
85)             <td>fixed stones of type "Z"</td></tr>
Stefan Schuermans different colors for tetris...

Stefan Schuermans authored 5 years ago

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

Stefan Schuermans authored 5 years ago

87)             <td></td>
Stefan Schuermans make tetris stones change c...

Stefan Schuermans authored 5 years ago

88)             <td>active stones of type "I"</td></tr>
Stefan Schuermans different colors for tetris...

Stefan Schuermans authored 5 years ago

89)         <tr><td><code>stoneJColor</code></td>
90)             <td></td>
Stefan Schuermans make tetris stones change c...

Stefan Schuermans authored 5 years ago

91)             <td>active stones of type "J"</td></tr>
Stefan Schuermans different colors for tetris...

Stefan Schuermans authored 5 years ago

92)         <tr><td><code>stoneLColor</code></td>
93)             <td></td>
Stefan Schuermans make tetris stones change c...

Stefan Schuermans authored 5 years ago

94)             <td>active stones of type "L"</td></tr>
Stefan Schuermans different colors for tetris...

Stefan Schuermans authored 5 years ago

95)         <tr><td><code>stoneOColor</code></td>
96)             <td></td>
Stefan Schuermans make tetris stones change c...

Stefan Schuermans authored 5 years ago

97)             <td>active stones of type "O"</td></tr>
Stefan Schuermans different colors for tetris...

Stefan Schuermans authored 5 years ago

98)         <tr><td><code>stoneSColor</code></td>
99)             <td></td>
Stefan Schuermans make tetris stones change c...

Stefan Schuermans authored 5 years ago

100)             <td>active stones of type "S"</td></tr>
Stefan Schuermans different colors for tetris...

Stefan Schuermans authored 5 years ago

101)         <tr><td><code>stoneTColor</code></td>
102)             <td></td>
Stefan Schuermans make tetris stones change c...

Stefan Schuermans authored 5 years ago

103)             <td>active stones of type "T"</td></tr>
Stefan Schuermans different colors for tetris...

Stefan Schuermans authored 5 years ago

104)         <tr><td><code>stoneZColor</code></td>
105)             <td></td>
Stefan Schuermans make tetris stones change c...

Stefan Schuermans authored 5 years ago

106)             <td>active stones of type "Z"</td></tr>
Stefan Schuermans add tetris doc

Stefan Schuermans authored 5 years ago

107)       </table>
108)     </p>
109)     <h3>Delays</h3>
110)     <p>
111)       Multiple timins of the tetris game can be configured.
112)       This is done by specifying the duration of certain times in the delay
113)       files.
114)       They contain a number that specifies the time in milliseconds.
115)       If the file is not present, a default value is used.
116)       The different settings, the valid value ranges and the defaults are
117)       listed in the following table:
118)       <table>
119)         <tr><td><b>file name</b></td>
120)             <td width="2em"></td>
121)             <td><b>description</b></td>
122)             <td width="2em"></td>
Stefan Schuermans fix table in tetris doc

Stefan Schuermans authored 5 years ago

123)             <td><b>default</b></td>