110 lines
No EOL
1.7 KiB
JavaScript
110 lines
No EOL
1.7 KiB
JavaScript
// 0 - INTRODUCTION
|
|
SLIDES.push(
|
|
|
|
{
|
|
chapter: "Conclusion",
|
|
clear:true,
|
|
|
|
add:[
|
|
|
|
// Sim
|
|
{
|
|
type:"sim",
|
|
x:0, y:0,
|
|
fullscreen: true,
|
|
network: {
|
|
"contagion":0,
|
|
"peeps":[[50,175,1],[194,187,0],[129,261,0],[46,303,0],[68,381,0],[151,408,0],[195,329,0]],
|
|
"connections":[[6,2,0],[2,3,0],[3,4,0],[4,5,0],[5,6,0],[6,3,0],[3,5,0],[5,2,0],[2,4,0],[4,6,0],[1,0,0]]
|
|
},
|
|
options:{
|
|
infectedFrame: 3,
|
|
scale: 1,
|
|
_wisdom: true
|
|
}
|
|
},
|
|
|
|
// Words
|
|
/*{
|
|
type:"box",
|
|
img:"sprites/conclusion.png", x:-10, y:-15, w:470, h:562
|
|
},*/
|
|
{
|
|
type:"box",
|
|
id:"conclusion_1",
|
|
text:"conclusion_1", x:0, y:0, w:960, h:540
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
chapter: "Conclusion-Splash",
|
|
clear:true,
|
|
|
|
add:[
|
|
|
|
// Splash
|
|
{
|
|
type:"sim",
|
|
x:960/2, y:540/2,
|
|
fullscreen: true,
|
|
network: SPLASH_NETWORK,
|
|
options:{
|
|
splash: true,
|
|
randomStart: 20
|
|
}
|
|
},
|
|
|
|
// Words
|
|
{
|
|
type:"box",
|
|
id:"conclusion_2",
|
|
text:"conclusion_2", x:180, y:0, w:600, h:540, align:"center"
|
|
},
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
remove:[
|
|
{type:"box", id:"conclusion_2"}
|
|
],
|
|
add:[
|
|
{
|
|
type:"box",
|
|
id:"conclusion_3",
|
|
text:"conclusion_3", x:210, y:160, w:540, h:220, align:"center"
|
|
}
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
remove:[
|
|
{type:"box", id:"conclusion_3"}
|
|
],
|
|
onstart: function(slideshow, state){
|
|
|
|
// SOUND
|
|
SOUNDS.chimes.play();
|
|
|
|
// splash animation, then auto-next to CREDITS.
|
|
var splash = slideshow.simulations.sims[0];
|
|
splash.options.CONCLUSION = true;
|
|
splash.options.CONCLUSION_GLOW_RADIUS = 0;
|
|
setTimeout(function(){
|
|
slideshow.next();
|
|
},7000);
|
|
|
|
},
|
|
onupdate: function(slideshow, state){
|
|
var splash = slideshow.simulations.sims[0];
|
|
splash.options.CONCLUSION_GLOW_RADIUS += 3;
|
|
}
|
|
}
|
|
|
|
); |