scottlininger/zelda30tribute

Blank black screen

level42ca opened this issue · 8 comments

I've uploaded the www/ directory, but when I load up the index.html page, I get nothing but a black screen.

The page title, and favicon do show up.

Any ideas?

Gracias por ponerte en contacto conmigo, pronto revisaré este mensaje y te contestaré. Un abrazo

Esteban Alvarez

It works fine on my web server, are you trying to use it on mobile by any chance? It only works on select mobile devices it seems.

@level42ca ... I wonder if you have any errors in your Javascript console?

I am having the same problem, my console says it can't find the png files so it throws preload errors.
In the scripts section, it shows Access to restricted URI denied. I ran it off of the file in the folder and using a local server in Chrome, Safari, and Firefox.

Accessed from my VM it runs across all browsers. Locally, it has only ran on Firefox for me. Chrome throws file not found and security errors while IE/Edge freezes. Although Firefox works, it points out there is unreachable code in actor.js (lines 192-199) as a result of the return statement on line 189. I'm assuming this is not resulting in the black screens for the other browsers and is due to the content being local and tainting the canvas. I hope this helps.
capture

@johnmiller86 - Ah, that makes sense. I think to get everything to work you'll need to run a local webserver and load the project over http:// instead of file://

There are a couple of simple webserver scripts in the project root. One is python and one is nodejs. I happen to prefer to nodejs one.

From a console:
cd zelda30tribute
node nodeserver.js

Then open in your browser:
http://localhost:9378/www/index.html

Hopefully then it will work. Let me know! Most browsers won't allow you to use assets that load off of file:// for security reasons.

I feel I should finally reply here. I was able to get this sorted out, as it turns out. I didn't upload all of the contents correctly to my server the first time. I re-downloaded the master and re-uploaded and Viola!

http://u64.ca/zelda30tribute

@scottlininger that certainly did the trick, works on chromium now!