Advertisement
dantepw

Untitled

Mar 23rd, 2014
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. <html>
  2. <head>
  3. <!-- Pull the engine from the Quintus CDN or load it locally -->
  4. <!-- (use quintus-all.min.js for production) -->
  5. <script src='http://cdn.html5quintus.com/v0.2.0/quintus-all.js'></script>
  6. </head>
  7. <body>
  8. <script>
  9.  
  10. // Now set up your game (most games will load a separate .js file)
  11. var Q = Quintus() // Create a new engine instance
  12. .include("Sprites, Scenes, Input, 2D, Touch, UI") // Load any needed modules
  13. .setup() // Add a canvas element onto the page
  14. .controls() // Add in default controls (keyboard, buttons)
  15. .touch(); // Add in touch support (for the UI)
  16.  
  17. /*
  18. ... Actual game code goes here ...
  19. */
  20. </script>
  21. </body>
  22. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement