forked from doublespeakgames/adarkroom
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- added cross-promotion event for Penrose - removed dead Dropbox code
- Loading branch information
1 parent
f8b3c03
commit bddb271
Showing
5 changed files
with
65 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/** | ||
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 | ||
}]; |