From 9b19a6493c7c9a326e6da97f840a06214f094ed8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Pelletier?= Date: Sun, 8 Sep 2024 23:13:02 -0400 Subject: [PATCH] Ajout brique streaming --- conf/bricks-streaming.json | 137 +++++++++++++++++++++++++++++++++++++ public/javascripts/game.js | 3 +- 2 files changed, 139 insertions(+), 1 deletion(-) create mode 100644 conf/bricks-streaming.json diff --git a/conf/bricks-streaming.json b/conf/bricks-streaming.json new file mode 100644 index 0000000..e35e352 --- /dev/null +++ b/conf/bricks-streaming.json @@ -0,0 +1,137 @@ +[ + { + "x": 0, + "y": 0, + "width": 75, + "height": 20, + "color": "#E50914", + "text": "Netflix", + "points": 10 + }, + { + "x": 80, + "y": 0, + "width": 75, + "height": 20, + "color": "#1DB954", + "text": "Spotify", + "points": 10 + }, + { + "x": 160, + "y": 0, + "width": 75, + "height": 20, + "color": "#00A8E1", + "text": "Disney+", + "points": 10 + }, + { + "x": 240, + "y": 0, + "width": 75, + "height": 20, + "color": "#FF9900", + "text": "Amazon Prime", + "points": 10 + }, + { + "x": 320, + "y": 0, + "width": 75, + "height": 20, + "color": "#000000", + "text": "Apple TV+", + "points": 10 + }, + { + "x": 0, + "y": 25, + "width": 75, + "height": 20, + "color": "#6441A4", + "text": "Twitch", + "points": 15 + }, + { + "x": 80, + "y": 25, + "width": 75, + "height": 20, + "color": "#FF0000", + "text": "YouTube", + "points": 15 + }, + { + "x": 160, + "y": 25, + "width": 75, + "height": 20, + "color": "#F65C1C", + "text": "SoundCloud", + "points": 15 + }, + { + "x": 240, + "y": 25, + "width": 75, + "height": 20, + "color": "#7AB800", + "text": "Hulu", + "points": 15 + }, + { + "x": 320, + "y": 25, + "width": 75, + "height": 20, + "color": "#0072D2", + "text": "Paramount+", + "points": 15 + }, + { + "x": 0, + "y": 50, + "width": 75, + "height": 20, + "color": "#5A2D81", + "text": "HBO Max", + "points": 20 + }, + { + "x": 80, + "y": 50, + "width": 75, + "height": 20, + "color": "#D9232E", + "text": "Crunchyroll", + "points": 20 + }, + { + "x": 160, + "y": 50, + "width": 75, + "height": 20, + "color": "#A4C639", + "text": "Deezer", + "points": 20 + }, + { + "x": 240, + "y": 50, + "width": 75, + "height": 20, + "color": "#FF5A5F", + "text": "Tidal", + "points": 20 + }, + { + "x": 320, + "y": 50, + "width": 75, + "height": 20, + "color": "#00ADEF", + "text": "Pandora", + "points": 20 + } +] \ No newline at end of file diff --git a/public/javascripts/game.js b/public/javascripts/game.js index 1c01ce2..0e8b42b 100644 --- a/public/javascripts/game.js +++ b/public/javascripts/game.js @@ -220,7 +220,8 @@ const brickFiles = [ 'bricks-coaching.json', 'bricks-techbro.json', 'bricks-cybersec.json', - 'bricks-gafam.json' + 'bricks-gafam.json', + 'bricks-streaming.json' ]; const randomFile = brickFiles[Math.floor(Math.random() * brickFiles.length)];