-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo.html
62 lines (56 loc) · 2.07 KB
/
demo.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/html">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>RPG Conversation Engine - Scene 001</title>
<!--
-->
<link href='http://fonts.googleapis.com/css?family=Roboto+Condensed:300' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Aldrich' rel='stylesheet' type='text/css'>
<link href="scene001.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="resources/jquery/jquery.1.8.2.min.js"></script>
<script src="RPGcEngine.js"></script>
<script src="resources/scenes/scene1.js"></script>
<script>
function sceneResponse(data){
console.log(arguments);
return data;
}
</script>
<script>
var models = {};
var config = {
"scriptLocation": "scenes/scene1.json",
"scriptContent": scene1,
"typeDialog": true,
"onLineCompletion": "userEvent",
"textRenderType": "character"/* word */,
"textSpeed": 24,
"wordSpeed": 100,
"framerate": 24,
"sceneCanvas": "#stage"
};
$(function(){
models = {
RPGcEngine: RPGcEngine( config, '#stage' )
};
models.RPGcEngine.playScript();
});
</script>
<script>
$(function(){
var charSpeechBox_11 = $('[character="PrincesOvelia"]');
var char_11 = $('#PrincesOvelia');
})
</script>
</head>
<body>
<div id="stage">
<div id="PrincesOvelia" class="characters"></div>
<div id="Priest_001" class="characters"></div>
<div id="Agrias" class="characters"></div>
<div id="Gaffgarion" class="characters"></div>
</div>
</body>
</html>