drawful

drawing game
git clone https://git.ce9e.org/drawful.git

commit
04eb85983b9a4bf44ff36f3f53e82b446d87e615
parent
b30a8660bccb3f6e850d569a7856a2aa8cf07b10
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2020-12-17 21:30
more words: emojis

Diffstat

M words.js 3 ++-

1 files changed, 2 insertions, 1 deletions


diff --git a/words.js b/words.js

@@ -6,11 +6,12 @@ var onomatopoeia = ['chomp', 'cough', 'gargle', 'gibberish', 'hiccup', 'hum', 'w
    6     6 var concepts = ['adventure', 'annoyance', 'artistry', 'childhood', 'comfort', 'communication', 'confusion', 'delight', 'disbelief', 'elegance', 'friendship', 'horror', 'kindness', 'luxury', 'pleasure', 'rhythm', 'sensitivity', 'silliness', 'speed', 'truth', 'uncertainty', 'union'];
    7     7 var movies = ['avengers', 'star wars', 'titanic', 'fast & furious', 'jurassic park', 'batman', 'james bond', 'transformers', 'avatar', 'toy story', 'harry potter', 'lord of the rings', 'finding nemo', 'pirates of the caribbean', 'snowwhite'];
    8     8 var electronics = ['capacitor', 'diode', 'resistor', 'switch', 'voltage source'];
   -1     9 var emojis = ['blush', 'hug', 'rofl', 'smile', 'thumbsup'];
    9    10 
   10    11 export var randomWord = function() {
   11    12 	if (Math.random() < 0.2) {
   12    13 		return utils.randomChoice(adjectives) + ' ' + utils.randomChoice(animals);
   13    14 	} else {
   14    -1 		return utils.randomChoice([].concat(onomatopoeia, concepts, movies, electronics));
   -1    15 		return utils.randomChoice([].concat(onomatopoeia, concepts, movies, electronics, emojis));
   15    16 	}
   16    17 };