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
Script [script] | |
(function () { | |
'use strict'; | |
/* globals version, Macro, jQuery */ | |
if (!version || !version.title || 'SugarCube' !== version.title || !version.major || version.major < 2) { | |
throw new Error('<<dlg>> macro requires SugarCube 2.0 or greater, aborting load'); | |
} | |
function getOrCreate(id) { |
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
::StoryInit | |
<<set | |
$gameDate = Date("2019-07-14T07:00Z"); | |
>> | |
<<set | |
window.GameDays = [ | |
"Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday" | |
]; | |
>> |
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
::StoryTitle | |
twine-bgmusic | |
::PassageReady | |
<<if !$masterPlaying && passage() !== 'YOUR-START-PASSAGE'>> | |
<<bgsound>> | |
<</if>> | |
::_setup-sound | |
<!-- <<include [[_setup-sound]]>> in StoryInit --> |
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
::StorySubtitle | |
НазваниеВашейИгры | |
::Style[stylesheet] | |
#story-title { | |
display: none; | |
} | |
#story-subtitle { | |
margin: 0; | |
font-size: 162.5%; |
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
::StoryTitle | |
twine-achievements | |
::StoryAbout | |
This is Twee 3 code. Learn more here: [[https://twinery.org/cookbook/terms/terms_twee.html]]. | |
Icon used ("icon-achievement" passage): [[https://game-icons.net/1x1/skoll/achievement.html]]. You ''must'' properly credit the original, or use your own image. | |
Features: | |
* displays notification in lower-right corner when achievement is awarded |
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
$1 = New-WinUserLanguageList en-US | |
$1.Add("ru-RU") | |
Set-WinUserLanguageList $1 -Force |
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
(function () { | |
// usage: <<abbr "text" "long explanation">> | |
'use strict'; | |
/* globals version, Macro, jQuery */ | |
if (!version || !version.title || 'SugarCube' !== version.title || !version.major || version.major < 2) { | |
throw new Error('<<abbr>> macro requires SugarCube 2.0 or greater, aborting load'); | |
} | |
version.extensions.abbr = { major: 1, minor: 2, revision: 1 }; |
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
const EARTH_RADIUS = 6378137; | |
function toDeg(angle) { | |
return angle * 180 / Math.PI; | |
} | |
function toRad(angle) { | |
return angle * Math.PI / 180; | |
} |
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
{ | |
"encounter": ["Я встретил #animal"], | |
"animal": ["серого волка", "#color# медведя", "#color# зайца"], | |
"color": ["черного", "белого"] | |
} |
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
[[Intro]]: | |
Some bla-bla. | |
+++Read on | |
More bla-bla, also take a look at this [additional info]. | |
+++Read on further | |
Even more bla-bla. |
NewerOlder