forked from CodeAndWeb/pixijs-sprite-sheet-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo_spritesheet.html
31 lines (29 loc) · 1.55 KB
/
demo_spritesheet.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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>PixiJS: How to decrease startup time for your game - 1</title>
<meta name="description" content="This demo project loads all assets in the game scene from a sprite sheet. This reduces the number of requests and improves startup time of the game scene.">
</head>
<body>
<h1>PixiJS - Sprite Sheet Scene</h1>
<p>This demo project loads all assets in the game scene from a sprite sheet. This reduces the number of requests and improves startup time of the game scene.<br/>
Visit the <a href="https://github.com/CodeAndWeb/pixijs-sprite-sheets">github project</a> for more information.
</p>
<script src="pixi.min.js"></script>
<script>
usePng8=false;
</script>
<script src="demo_spritesheet.js"></script>
<h4>Other versions of this demo</h4>
<p>
<a href="https://htmlpreview.github.io/?https://github.com/CodeAndWeb/pixijs-sprite-sheets/blob/master/demo_single.htm">Individual sprites</a>
| Sprite sheet
| <a href="https://htmlpreview.github.io/?https://github.com/CodeAndWeb/pixijs-sprite-sheets/blob/master/demo_spritesheet-png8.html"> Optimized sprite sheets</a>
</p>
<h4>Tutorial</h4>
<p>
Learn more in our tutorial: <a href="https://www.codeandweb.com/texturepacker/tutorials/how-to-create-sprite-sheets-and-animations-with-pixijs">How to create sprite sheets and animations with PixiJS</a>.
</p>
</body>
</html>