Jump to content

tutorial boilerplate black screen on localhost


DT11
 Share

Recommended Posts

Hi melonJS,

I am trying to run the boilerplate tutorial on the local server at localhost8000 as it says in the "readme". I can run it and the tab title says 'boilerplate' so I know it is connected but it the screen remains black. I added the line

me.levelDirector.loadLevel("area_01");

to 'play.js'. I named my file with an underscore so it is not 'area01' like in the tutorial.

I added to the index.html, the most recent cdn <script> for melonJS and commented out the old one so you can still see it or make it active again.

I also have changed the value of property 'keepalive' to true from false in the gruntfile.js located at -> boilerplate/gruntfile.js

This made the local server display the melonJS logo/icon one time. Black again afterwards every time.

I have been trying to trace the problem and there is a single error but I cannot locate where it is:

Loading "asar.js" tasks...ERROR

>> ReferenceError: primordials is not defined

 

I have attached the boilerplate directory that I have been using.

 

 

boilerplate.zip

Link to comment
Share on other sites

  • 1 month later...

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...