-
Notifications
You must be signed in to change notification settings - Fork 0
/
rgbit.html
87 lines (81 loc) · 3.41 KB
/
rgbit.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<!--*
* RGBit Mix HTML content.
*
* Copyright (C) 2019 T. Ian "Luna" Ericson.
*
* This program is free software, licensed under
* the terms of the GNU Public License version 2+
* as published by the Free Software Foundation.
* All rights not specifically granted herein are
* hereby granted freely to the user by the
* creator of this software.
*
* This software is distributed in the hope that
* it will be useful or entertaining, but WITHOUT
* ANY WARRANTY, implied or otherwise, as
* described under the GPL2+.
*
* You should have received a copy of the GNU
* Public License along with this software. If not,
* the license is available at:
* <http://www.gnu.org/licenses/>.
*-->
<!doctype html>
<html>
<head>
<title>RGBit Mix</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="css/rgbit.css">
</head>
<body>
<div id="setup">
<p>Game Mode:<br>
<select id="gameMode">
<option value="0">Standard</option>
<option value="1">Timed</option>
</select>
</p>
<br>
<p>Staring Colors:<br>
<select id="staringColors">
<option value="0">3 (RGB)</option>
<option value="1">4 (RGBW)</option>
<option value="2">4 (CMYW)</option>
</select>
</p>
<br>
<p><span id="counterSetup">Moves:</span><br><input type="number" id="maxCounter" min="10" max="25"></p>
<br><br>
<button id="gameStart">Play</button>
</div>
<div id="core">
<h1 id="headerBlank" class="color-w">
<span class="color-r">R</span><span class="color-g">G</span><span class="color-b">B</span>it Mix
</h1>
<p id="item-r" class="gameObject"><img src=""></p>
<p id="item-g" class="gameObject"><img src=""></p>
<p id="item-b" class="gameObject"><img src=""></p>
<p id="item-c" class="gameObject"><img src=""></p>
<p id="item-m" class="gameObject"><img src=""></p>
<p id="item-y" class="gameObject"><img src=""></p>
<p id="item-w" class="gameObject"><img src=""></p>
<p id="moves" class="color-w"></p><br><br>
<p id="score" class="color-w"></p><br><br>
<button id="resetBoard">New Game</button><br><br>
<button id="buttonOptions">Options</button>
<p id="instructions">
Colors correspond to their binary representations in RGB order. Each color up the scale is worth twice that of the last, with blue being worth the least at 2 points. Colors are mixed with the last color you picked via bitwise XOR.
<br>
<br>001 = <span class="color-b">B</span> 010 = <span class="color-g">G</span> 011 = <span class="color-c">C</span>
<br>100 = <span class="color-r">R</span> 101 = <span class="color-m">M</span> 110 = <span class="color-y">Y</span>
<br>111 = <span class="color-w">W</span><br>
<br><span class="color-b">B</span> = 2 <span class="color-g">G</span> = 4 <span class="color-c">C</span> = 8
<br><span class="color-r">R</span> = 16 <span class="color-m">M</span> = 32 <span class="color-y">Y</span> = 64
<br><span class="color-w">W</span> = 128
</p>
</div>
<script type="text/javascript" src="js/rgbit.js"></script>
</body>
</html>