Files
adarkroom/script/events/marketing.js
T
Michael Townsend bddb27131e - added link to doublespeak
- added cross-promotion event for Penrose
- removed dead Dropbox code
2021-01-28 13:54:23 -05:00

36 lines
929 B
JavaScript

/**
Module for triggering marketing messages
@author mtownsend
@since Jan 2021
*/
Events.Marketing = [{
/* Play Penrose! */
title: _('Penrose'),
isAvailable: () => !$SM.get('marketing.penrose'),
scenes: {
'start': {
text: [
_('a strange thrumming, pounding and crashing. visions of people and places, of a huge machine and twisting curves.'),
_('inviting. it would be so easy to give in, completely.')
],
notification: _('a strange thrumming, pounding and crashing. and then gone.'),
blink: true,
buttons: {
'give in': {
text: _('give in'),
onClick: () => {
$SM.set('marketing.penrose', true);
},
link: 'https://penrose.doublespeakgames.com'
},
'ignore': {
text: _('ignore it'),
nextScene: 'end'
}
}
}
},
audio: AudioLibrary.EVENT_NOISES_INSIDE
}];