Jump to content

Correct linking in Brackets editor.


mikemhz
 Share

Recommended Posts

I am following the setup guide for pixi.js using Brackets editor.

I have followed the guide exactly, but the console message I am supposed to get...

Quote

Pixi.js 4.0.0 - ✰ WebGL ✰ http://www.pixijs.com/ ♥♥♥

... does not appear. I only get the confirmation from Brackets:

Quote

[Brackets LiveDev] Connected to Brackets at ws://localhost:8123

 

Link to comment
Share on other sites

4 minutes ago, themoonrat said:

You only get the confirmation message you're looking for once you've created a renderer

Thank you. The instructions seemed to imply that I would get the confirmation message just by linking the script file.

Minimum to get it working is:

<!DOCTYPE html>
<html>
    <body>
	    <script src="pixi.js">
		</script>
		<script>
		//Create the renderer
			var renderer = PIXI.autoDetectRenderer(256, 256);

		//Add the canvas to the HTML document
			document.body.appendChild(renderer.view);

		//Create a container object called the `stage`
			var stage = new PIXI.Container();

		//Tell the `renderer` to `render` the `stage`
			renderer.render(stage);
		</script>
    </body>
</html>

The instructions should be simplified to make this part obvious. Could save people a lot of time.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...