Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <!-- Pull the engine from the Quintus CDN or load it locally -->
- <!-- (use quintus-all.min.js for production) -->
- <script src='http://cdn.html5quintus.com/v0.2.0/quintus-all.js'></script>
- </head>
- <body>
- <script>
- // Now set up your game (most games will load a separate .js file)
- var Q = Quintus() // Create a new engine instance
- .include("Sprites, Scenes, Input, 2D, Touch, UI") // Load any needed modules
- .setup() // Add a canvas element onto the page
- .controls() // Add in default controls (keyboard, buttons)
- .touch(); // Add in touch support (for the UI)
- /*
- ... Actual game code goes here ...
- */
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement