@26325001/

pixijs-tutorial

HTML, CSS, JS

No description

fork
loading
Files
  • index.html
  • script.js
  • style.css
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width">
    <title>pixiJS</title>
    <link href="style.css" rel="stylesheet" type="text/css" />
  </head>
  <body>
    <script src="https://pixijs.download/v4.5.5/pixi.min.js"></script>
    <script src="script.js"></script><!--toturial at-->
    <!-- https://github.com/kittykatattack/learningPixi -->
    <script>
      let type = "WebGL"
      if(!PIXI.utils.isWebGLSupported()){
        type = "canvas"
      }

      document.body.appendChild(app.view);
    </script>
  </body>
</html>
result
console