kopia lustrzana https://github.com/backface/turtlestitch
rollback experiment
rodzic
df5b88bea5
commit
c0dea85dfb
16
snap.html
16
snap.html
|
@ -37,9 +37,9 @@
|
|||
<script src="src/sha512.js?version=2019-06-27"></script>
|
||||
<script src="src/FileSaver.min.js?version=2019-06-27"></script>
|
||||
<script>
|
||||
var world,
|
||||
FPS = 67,
|
||||
lastTime = 0;
|
||||
var world;
|
||||
// FPS = 67,
|
||||
// lastTime = 0;
|
||||
window.onload = function () {
|
||||
if ('serviceWorker' in navigator) {
|
||||
navigator.serviceWorker.register('sw.js');
|
||||
|
@ -48,13 +48,13 @@
|
|||
new IDE_Morph().openIn(world);
|
||||
loop();
|
||||
};
|
||||
function loop(timestamp) {
|
||||
function loop() { // timestamp) {
|
||||
requestAnimationFrame(loop);
|
||||
if (timestamp - lastTime < 1000 / FPS) {
|
||||
return;
|
||||
}
|
||||
// if (timestamp - lastTime < 1000 / FPS) {
|
||||
// return;
|
||||
// }
|
||||
world.doOneCycle();
|
||||
lastTime = timestamp;
|
||||
// lastTime = timestamp;
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
|
|
42
sw.js
42
sw.js
|
@ -109,6 +109,48 @@ var snapVersion = '8.0.0-rc-220724',
|
|||
'libraries/schemeNumber.js',
|
||||
'libraries/SciSnapExtensions.js',
|
||||
'libraries/SciSnap!2Blocks.xml',
|
||||
|
||||
'libraries/TuneScope.xml',
|
||||
|
||||
// TuneScope dependencies
|
||||
'libraries/TuneScope/TuneScope.js',
|
||||
'libraries/TuneScope/TS_init.js',
|
||||
'libraries/TuneScope/webmidi.iife.js',
|
||||
'libraries/TuneScope/WebAudioFontPlayer.js',
|
||||
|
||||
// TuneScope instruments
|
||||
'libraries/TuneScope/12849_21_FluidR3_GM_sf2_file.js',
|
||||
'libraries/TuneScope/12848_21_FluidR3_GM_sf2_file.js',
|
||||
'libraries/TuneScope/12847_21_FluidR3_GM_sf2_file.js',
|
||||
'libraries/TuneScope/12846_0_FluidR3_GM_sf2_file.js',
|
||||
'libraries/TuneScope/12842_0_FluidR3_GM_sf2_file.js',
|
||||
'libraries/TuneScope/12835_21_FluidR3_GM_sf2_file.js',
|
||||
'libraries/TuneScope/12840_6_JCLive_sf2_file.js',
|
||||
'libraries/TuneScope/12869_6_JCLive_sf2_file.js',
|
||||
'libraries/TuneScope/0580_GeneralUserGS_sf2_file.js',
|
||||
'libraries/TuneScope/0560_GeneralUserGS_sf2_file.js',
|
||||
'libraries/TuneScope/0680_JCLive_sf2_file.js',
|
||||
'libraries/TuneScope/0121_FluidR3_GM_sf2_file.js',
|
||||
'libraries/TuneScope/1070_FluidR3_GM_sf2_file.js',
|
||||
'libraries/TuneScope/0460_GeneralUserGS_sf2_file.js',
|
||||
'libraries/TuneScope/0600_GeneralUserGS_sf2_file.js',
|
||||
'libraries/TuneScope/0730_JCLive_sf2_file.js',
|
||||
'libraries/TuneScope/0710_Chaos_sf2_file.js',
|
||||
'libraries/TuneScope/0420_JCLive_sf2_file.js',
|
||||
'libraries/TuneScope/0400_JCLive_sf2_file.js',
|
||||
'libraries/TuneScope/0700_FluidR3_GM_sf2_file.js',
|
||||
'libraries/TuneScope/1040_Aspirin_sf2_file.js',
|
||||
'libraries/TuneScope/0770_SBLive_sf2.js',
|
||||
'libraries/TuneScope/0650_FluidR3_GM_sf2_file.js',
|
||||
'libraries/TuneScope/1050_FluidR3_GM_sf2_file.js',
|
||||
'libraries/TuneScope/0180_Chaos_sf2_file.js',
|
||||
'libraries/TuneScope/0020_JCLive_sf2_file.js',
|
||||
'libraries/TuneScope/0260_JCLive_sf2_file.js',
|
||||
'libraries/TuneScope/0241_JCLive_sf2_file.js',
|
||||
'libraries/TuneScope/0350_JCLive_sf2_file.js',
|
||||
'libraries/TuneScope/0320_GeneralUserGS_sf2_file.js',
|
||||
'libraries/TuneScope/0230_Aspirin_sf2_file.js',
|
||||
|
||||
'libraries/serial_module.xml',
|
||||
'libraries/signada.js',
|
||||
'libraries/signada.xml',
|
||||
|
|
Ładowanie…
Reference in New Issue