forked from yining1023/brickBreaker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
about.js
92 lines (76 loc) · 3.27 KB
/
about.js
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
88
89
90
91
92
let soundtrack;
let inconsolata;
let lastLineHeight = 0;
const LINE_HEIGHT = 28;
function preload() {
soundtrack = loadSound('assets/SpiegelImSpiegelMonoShort.mp3');
inconsolata = loadFont('assets/inconsolata.otf');
}
function setup() {
setupCanvas(false);
soundtrack.loop();
cursor(HAND);
}
function draw() {
lastLineHeight = 0;
background(255);
textFont(inconsolata);
textSize(30);
fill(0);
if(BWB_LANG == BWB_LANG_EN) {
addHeading('ABOUT');
addParagraph('This breakout game uses 3d, food and stop-motion tricks.');
addParagraph('It was made from November 2019 to June 2021 in Normandy.');
addLineBreak();
addHeading('LOW-TECH');
addParagraph('The open-source web game is cookieless and databaseless.');
addParagraph('It was coded and tested on a year 2008 Lenovo T400 laptop.');
addParagraph('Photographs were made on a 2010 Samsung Galaxy S phone.');
addParagraph('My high-end computer died 2019 in a apple cider accident.');
addParagraph('No statistics gathered, game state is passed by URL.');
addLineBreak();
addHeading('INSPIRATION');
addParagraph('The beloved Ms. Crepes of Le Mans, a GDevelop teacher;');
addParagraph('100r.co - The Hundredrabbits sailing video games studio;');
addParagraph('Marjorie Ober & N. Chesnais - Libre Graphics Meeting 2020;');
addParagraph('L\'Envol by Samuel Yal - an COVID community stop-motion;');
addParagraph('Emmanuelle Turquet\'s Cuisine Thérapie.');
} else {
addHeading('A PROPOS');
addParagraph('Ce casse brique mélange 3d, aliments et stop-motion.');
addParagraph('Il a été créé de Novembre 2019 à Juin 2021 en Normandie.');
addLineBreak();
addHeading('LOW-TECH');
addParagraph('Ce jeu web open-source est sans cookie ni base de données.');
addParagraph('Il a été réalisé sur un PC portable Lenovo T400 de 2008.');
addParagraph('Les photos ont été prises sur Samsung Galaxy S de 2010.');
addParagraph('Mon bon ordinateur mourut en 2019 d\'un accident de cidre.');
addParagraph('Aucune collecte statistique, l\'état du jeu est dans l\'URL.');
addLineBreak();
addHeading('INSPIRATION');
addParagraph('Mademoiselle Crêpes du Mans, une professeur de GDevelop.');
addParagraph('100r.co - Le voilier-studio de jeu-vidéos Hundredrabbits.');
addParagraph('Marjorie Ober & N. Chesnais - Libre Graphics Meeting 2020.');
addParagraph('L\'Envol - Samuel Yal - Stop-motion communautaire en COVID.');
addParagraph('La Cuisine Thérapie d\'Emmanuelle Turquet.');
}
}
function addLineBreak() {
lastLineHeight += LINE_HEIGHT;
}
function addHeading(msg) {
lastLineHeight += LINE_HEIGHT;
fill(lerp(0,200,mouseX/width));
text(msg, 10, lastLineHeight);
}
function addParagraph(msg) {
fill(lerpColor(color(0,255,255), color(255,0,255), (mouseX/width + mouseY/height) / 2.0));
lastLineHeight += LINE_HEIGHT;
text(msg, 10, lastLineHeight);
}
function mouseReleased() {
userStartAudio(); // Chrome hack
if (mouseX < width && mouseX > 0 && mouseY < height && mouseY > 0) {
redirectToUrlFor('makingof');
}
}