ncase / wbwwb

We Become What We Behold – a minigame about the news!
1.15k stars 235 forks source link

hosting on github.io #23

Open mikkokotila opened 6 years ago

mikkokotila commented 6 years ago

Do you have an instruction for making the game work as a github page. Similar to how claycoffee is doing it > https://claycoffee.github.io/wbwwb/

Thanks a lot for the amazing game!

ncase commented 6 years ago

To turn on Github Pages, go to the ⚙️Settings tab on your forked repo, scroll down to "GitHub Pages", then set as the source its master branch! Your game URL should then be at mikkokotila.github.io/wbwwb More details about Github Pages here: https://pages.github.com/ Many thanks!

mikkokotila commented 6 years ago

Thanks. I did try that but it does not work. For some reason I just get a black screen:

https://mikkokotila.github.io/wbwwb/

The steps I followed is:

1) create a fork from ncase/wbwwb

2) set the github pages source for mikkokotila/wbwwb to master

mikkokotila commented 5 years ago

Any thoughts on this?

ncase commented 5 years ago

Hi! Sorry, got busy the last week or so (and my inbox is a mess). The problem seems to be that textStrings.js is broken: https://github.com/ncase/wbwwb/blob/master/js/textStrings.js I must have pulled a translation with improper JSON formatting. Shucks. I'll fix that eventually, but in the meantime, on your rep, you can delete every textString object that's not the language you want, then set var textStrings = textStrings_[the language you want] at the end. Good luck!

briced commented 5 years ago

Hi, I fixed it in https://github.com/ncase/wbwwb/pull/25, It's a problem with a translation where all lines start with a '+'.