forked from rolandoam/ChesterGL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_base64_texture.html
72 lines (65 loc) · 13.8 KB
/
test_base64_texture.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
63
64
65
66
67
68
69
70
71
72
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="test.css"/>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
<!-- <script type="text/javascript" src="externals/webgl-debug.js"></script> -->
<script type="text/javascript" src="chester.js"></script>
<!-- audio!! -->
<script type="text/javascript">
$(document).ready(function () {
setupGame();
function setupGame() {
chesterGL.settings['useGoogleAnalytics'] = true;
chesterGL.setup("demo-canvas");
var size = chesterGL.viewportSize();
var oneDeg = Math.PI / 180.0;
chesterGL.loadAsset("texture", "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGUAAACrCAYAAAB/nlILAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAhxklEQVR4Xu1dB3RV1bYFEjpKpJdAEnpCCQkQEgik914hvdCSEEgI0kF6lSJVUJDeEnqTIh0MqCi2pz678vWJ8p5+/3vv/zfeYP41970n3IQ00O+/wLljrHFv9tlnn33mXHOttfe5XGrU0F86AjoCOgI6AjoCOgI6AjoCOgI6AjoCOgI6AjoCOgI6AjoCOgI6AjoCOgI6AjoCOgI6AjoCOgI6AjoCOgI6AjoCOgI6AjoCOgI6AjoCOgI6AjoCOgI6AjoCOgI6AjoCOgI6AjoCOgI6AjoCOgI6AjoCOgI6AjoCOgI6AjoCOgI6AjoCOgI6AjoCOgI6AjoCOgI6AjoCOgI6AjoCOgI6AjoCOgI6AjoCOgI6AjoCOgI6AjoCOgI6AjoCOgI6AjoCfzAC1jVq1S2oaVGnqCKrUaNOXGmrY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g00gWTfubx2zFSCZVwe8CUH0kWiODuYw5TSejOswYgdLIoXIY1ggmCaKXE2CSRLBpVJNm/JvHqDKSqRHBnEWiqQySQWXqr4dAgF5M8Agi1UPvJrAkiSBTSSSrrLGdfRieSCqJYM7Qw9RDkFDZKSRIC28kiSAzB5EsU2MbjX1IAknVQ9TvTIY+nI6AjoCOgI6AjoCOgI6AjoCOgI6AjoCOgI6AjoCOgI6AjoCOgI6AjoCOgI6AjoCOgI6AjoCOgI6AjsDjgMD/AiCXa7eykNM1AAAAAElFTkSuQmCC", "Character Horn Girl");
chesterGL.assetsLoaded("texture", function () {
// $("#loading").html("Test Single Block");
// finish with the setup and run the game
chesterGL.setupPerspective();
var sceneBlock = new chesterGL.Block(null, chesterGL.Block.TYPE['SCENE']);
sceneBlock.title = "Test::Single Block";
chesterGL.setRunningScene(sceneBlock);
// create a block
var someBlock = new chesterGL.Block();
someBlock.setTexture("Character Horn Girl");
someBlock.setPosition([size.width/2, size.height/2, 0]);
sceneBlock.addChild(someBlock);
// add some action
var move = new chesterGL.MoveAction([0, 0, 150], 2000);
var seq = chesterGL.SequenceAction.createSequence(move, move.reverse());
var repeat = new chesterGL.RepeatAction(seq, -1); // repeat for ever
someBlock.runAction(repeat);
someBlock.setUpdate(function () {
this.setRotation(this.rotation + oneDeg);
});
chesterGL.run();
// draw a single frame (for debug purposes)
// chesterGL.drawScene();
});
} // setupGame()
});
</script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-77863-9']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body>
<div id="loading" style="position: absolute; z-index: 100;"></div>
<div id="game-container">
<canvas id="demo-canvas" width="640" height="480"></canvas>
<div>
<span id="debug-info">00</span> ms per frame
</div>
</div>
</body>
</html>