Skip to content

Commit

Permalink
Adding ragefaces theme
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Garside committed Dec 13, 2011
1 parent 7b903d9 commit 62fce6c
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 5 deletions.
8 changes: 5 additions & 3 deletions memory.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,11 @@ function handleVictory(socket, stats) {
for (id in io.sockets.sockets) {
if (io.sockets.sockets.hasOwnProperty(id)) {
io.sockets.sockets[id].get('stats', function (err, stats) {
stats.checking = null;
stats.flipped = [];
io.sockets.sockets[id].set('stats', stats);
if (stats !== null) {
stats.checking = null;
stats.flipped = [];
io.sockets.sockets[id].set('stats', stats);
}
});
}
}
Expand Down
19 changes: 19 additions & 0 deletions public/cards.css
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,22 @@
.skin-minecraft .card-5 .front { background-image: url(minecraft/pumpkin.png); }
.skin-minecraft .card-6 .front { background-image: url(minecraft/ice.png); }
.skin-minecraft .card-7 .front { background-image: url(minecraft/cactus.png); }

/* Ragefaces!
----------------------------------*/
.skin-rageface .card .back {
background-color: #000;
background-repeat: no-repeat;
}
.skin-rageface .card .front {
background-repeat: no-repeat;
background-image: url(ragefaces.jpg);
}
.skin-rageface .card-0 .front { background-position: -85px -50px; }
.skin-rageface .card-1 .front { background-position: -300px -50px; }
.skin-rageface .card-2 .front { background-position: -530px -50px; }
.skin-rageface .card-3 .front { background-position: -765px -50px; }
.skin-rageface .card-4 .front { background-position: -990px -50px; }
.skin-rageface .card-5 .front { background-position: -85px -324px; }
.skin-rageface .card-6 .front { background-position: -324px -324px; }
.skin-rageface .card-7 .front { background-position: -765px -324px; }
1 change: 1 addition & 0 deletions public/game.css
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ h1 {
/* Announce
----------------------------------*/
#messages {
z-index: 500;
position: fixed;
top: 0;
left: 0;
Expand Down
3 changes: 1 addition & 2 deletions public/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@
*/
socket.on("game-info", function (data) {
if (KOI.isValid(data.state.winner)) {
setMessage("The next game begins soon!", "message");
setMessage("", "message");
KOI.each(KOI.getElements("card"), function (index, e) {
KOI.processors.classes(e, "");
});
Expand All @@ -231,7 +231,6 @@
KOI.processors.text(KOI.getElements("#winner-name"),
data.state.winner);
} else {
setMessage("Game started!", "message");
KOI.processors.classes(KOI.getElements("#winner"), "hide");
KOI.processors.classes(KOI.getElements("#winner-screen"), "hide");
}
Expand Down
1 change: 1 addition & 0 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ <h1 id="title"></h1>
<option value="colors" selected="selected">Colors (Easy)</option>
<option value="planets">Planets (Hard)</option>
<option value="minecraft">Minecraft (Implausible)</option>
<option value="rageface">Rageface! (FUUUU)</option>
</select>
</div>
<div class="form-section clearfix">
Expand Down
Binary file added public/ragefaces.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 62fce6c

Please sign in to comment.