Closed ZippoLag closed 10 years ago
I'm sorry, the js-tests and js-moonwarriors don't support cocos console command yet, we will implement this feature later.
I see, but you should note that they also don't work if hosted on a web server as a simple cocos2d-html5 game.
Same problem.
This has been fixed for a while now, what source are you downloading from?
cocos2d-js-v3.0-beta
Is it fixed? The issue is still open.
It has been fixed. Please checkout cocos2d-js-v3.0-beta. I will close this issue.
I indeed use the version cocos2d-js-v3.0-beta and have the problem.
That's indeed very strange. I downloaded the .zip from cocos2d-x.org and it works fine.. Also, the file exists in the repo: https://github.com/cocos2d/cocos2d-js/tree/master/samples/js-moonwarriors
When attepting to run the source I get a "Can't find config file .cocos-project.json" error.
There exists a "project.json" file in the "samples/js-moonwarriors" folder, but renaming it to ".cocos-project.json" then causes the followin error when attempting the run command:
If I try to run this by hosting it in a server, I get the following errors in Chrome: Failed to load resource: the server responded with a status of 404 (Not Found) http://127.0.0.1:50152/frameworks/cocos2d-html5/CCBoot.js Uncaught ReferenceError: cc is not defined
All of the above also applies to the contents of "js-tests".