diff --git a/game/menu.lua b/game/menu.lua
index 2862816..f8daaf8 100644
--- a/game/menu.lua
+++ b/game/menu.lua
@@ -222,7 +222,7 @@ function menu_draw()
love.graphics.setColor(255, 0, 0)
if starti >= -1 then
- properprint("tapes ton pseudo", 20, 40+textpos[0], scale/2)
+ properprint("tape ton pseudo", 18, 40+textpos[0], scale/2)
properprint(pseudo, 20, 50+textpos[0], scale/2)
end
@@ -233,7 +233,7 @@ function menu_draw()
properprint("utilise les fleches", 11, 40+textpos[1], scale/2)
end
if starti >= 2 then
- properprint("et la touche espace", 12, 40+textpos[2], scale/2)
+ properprint("et une autre touche", 11, 40+textpos[2], scale/2)
end
if starti >= 3 then
properprint("pret...", 30, 40+textpos[3], scale/2)
diff --git a/public/index.html b/public/index.html
index 8e0bd13..ef2e273 100644
--- a/public/index.html
+++ b/public/index.html
@@ -22,7 +22,7 @@
Le gagnant remporte une récompense ... mousseuse !
-
Une ch'tiote fin ? Venez manger nos bruschettas préparées avec amour pour 2€ seulement !
+
Une ch'tiote faim ? Venez manger nos bruschettas préparées avec amour pour 2€ seulement !
diff --git a/public/main.js b/public/main.js
index 3492c3e..8a7b0b6 100644
--- a/public/main.js
+++ b/public/main.js
@@ -29,6 +29,9 @@ $(function() {
});
var oldScore = 0;
+ var shakeStart = 0;
+ var SHAKE_DURATION = 10
+ var SHAKE_MAX_THRESOLD = 100
function redrawScores() {
var sortable = [];
@@ -48,6 +51,7 @@ $(function() {
if (scores[0].score > oldScore) {
$('#bestBlock').animateCss('rotateIn');
oldScore = scores[0].score;
+ shakeStart = Date.now()/1000;
}
}
}
@@ -63,6 +67,13 @@ $(function() {
rainbowColor(logo);
}, 500);
+ function shake(thresold) {
+ var x = Math.round((2*Math.random()-1)*thresold);
+ var y = Math.round((2*Math.random()-1)*thresold);
+ $('body').css('transform', 'translate('+x+'px, '+y+'px)');
+
+ }
+
(function anim() {
var now = Date.now()/1000;
@@ -71,6 +82,12 @@ $(function() {
var rot = Math.sin(now*10)/10;
logo.css('transform', 'rotate(' + rot + 'rad) scale(' + scale + ')');
rainbowColor($('#bestBlock .score'));
+
+ // Shake
+ if (now - shakeStart < SHAKE_DURATION) {
+ shake(Math.exp(10 * (shakeStart - now) / SHAKE_DURATION) * SHAKE_MAX_THRESOLD)
+ }
+
requestAnimationFrame(anim);
})();
diff --git a/sub.txt b/sub.txt
index 8b4272a..346ca17 100644
--- a/sub.txt
+++ b/sub.txt
@@ -19,3 +19,5 @@ Toi là. Va mettre un j'aime sur la page Facebook du Club Info. Et sur celle de
C'est l'histoire d'un pilote d'avion qui ... Ah tu la connais déjà ? Tant pis.
Si tu aimes faire de la danse, c'est tout simple, rejoint Polydance !
Interessé par l'informatique et/ou par la programmation ? Pourquoi ne pas rejoindre le Club Info ?
+Trosh est invincible \o/
+Normalement il y a une musique, mais ça deviendrait vite soulant de l'écouter en boucle.
--
libgit2 0.21.2