1
0
forked from sent/waves
waves/public/assets/g/adarkroom/script/events/marketing.js
2025-04-09 17:11:14 -05:00

36 lines
994 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/?utm_source=adarkroom&utm_medium=crosspromote&utm_campaign=event'
},
'ignore': {
text: _('ignore it'),
nextScene: 'end'
}
}
}
},
audio: AudioLibrary.EVENT_NOISES_INSIDE
}];