Overv / WebCraft

Minecraft clone written in Javascript.
zlib License
385 stars 183 forks source link

singleplayer does not work #9

Open mrpi64 opened 11 years ago

mrpi64 commented 11 years ago

when i play singleplayer, i just get a black floor and the blocks on the top. that's it. i use google chrome.

ksrichard commented 11 years ago

yeah I've got the same problem..! and I use chrome too

Overv commented 11 years ago

Does this work for you?

http://dev.vertinode.nl/WebCraft/singleplayer.html

I think the problem is that you're just opening singleplayer.html directly. The code won't work unless you put it on a local webserver.

mrpi64 commented 11 years ago

Nope.

Overv commented 11 years ago

Please tell me if you see any error messages in the developer console, because it works fine here with the latest Chrome and Firefox.

ghost commented 11 years ago

The link you posted worked for me but it was terribly laggy compared to the normal one (same issue, everything except block selector is black)

Overv commented 11 years ago

@mrpi64 @Quarynn I'm afraid I have no idea what causes this.

ksrichard commented 11 years ago

on my local webserver works fine the multiplayer too :) so thank you! :)

ksrichard commented 11 years ago

my other question is how can i add more blocks to use? :)

ghost commented 11 years ago

Learn Javascript and go through the code?

mrpi64 commented 11 years ago

On 14 July 2013 17:59, Quarynn notifications@github.com wrote:

Learn Javascript and go through the code?

— Reply to this email directly or view it on GitHubhttps://github.com/Overv/WebCraft/issues/9#issuecomment-20939511 .

I think the problem is webGL. I'm using an ARM 32-bit linux machine.

LublubXT commented 3 years ago

Hey when I opened the game everything was just black! Is there something wrong with the lighting? If you could help that would be great, but so far good job on the game, just need to fix some minor issues!

cymno commented 3 years ago

@LublubXT If you just open the html file in a browser, textures will be missing and look black. If you use any simple web server (e.g. python3 -m http.server) singleplayer.html will work correctly. Multiplayer.html needs the custom server.js script: https://github.com/Overv/WebCraft/issues/46#issuecomment-605383125

LublubXT commented 3 years ago

Thanks!

LublubXT commented 3 years ago

Also check this out:

https://github.com/Cobra-Tec-Inc/Number_Line_1.0

It the app we made. It does have some bugs but should be fixed by next week.