ncase.me-trust/js/slides/0_Slides_Intro.js

43 lines
722 B
JavaScript
Raw Normal View History

2017-07-10 18:06:22 +00:00
/********************
0. Introduction
1. One Game
2. Repeated Game
3. One Tournament
4. Repeated Tournament
5. Making Mistaeks
6. Sandbox
7. Conclusion
X. Credits
Labels should be in the en.html folder
*********************/
2017-07-10 15:38:20 +00:00
SLIDES.push({
id: "intro",
2017-07-10 18:06:22 +00:00
onstart: function(self){
2017-07-10 15:38:20 +00:00
// Splash in background
2017-07-10 18:06:22 +00:00
self.add({ id:"splash", type:"Splash" });
2017-07-10 15:38:20 +00:00
// Circular Wordbox
2017-07-10 18:06:22 +00:00
self.add({
2017-07-10 15:38:20 +00:00
id:"intro_text", type:"TextBox",
2017-07-10 18:06:22 +00:00
x:160, y:10, width:640, height:500, align:"center", size:19,
text_id:"intro"
});
2017-07-10 15:38:20 +00:00
// Button
2017-07-10 18:06:22 +00:00
self.add({
2017-07-13 15:07:33 +00:00
id:"intro_button", type:"Button", x:304, y:466, size:"long",
text_id:"intro_button",
2017-07-10 15:38:20 +00:00
message:"slideshow/scratch"
2017-07-10 18:06:22 +00:00
});
2017-07-10 15:38:20 +00:00
2017-07-10 18:06:22 +00:00
},
onend: function(self){
self.clear();
}
2017-07-10 15:38:20 +00:00
});