Cocos 2d js not working problem

hello guys…

My company decide to make html 5 game. So I try to learn about cocos2d -js.

But its so hard to start…

I download project and make project.

It looks work fine.

when I try to run project

“cocos run -p web” it work!!

but when I just start index.html file with chrome… it didn’t work.

and… I really don’t know whats wrong with me…

do I have to do another things??

when I type index.html in the chrome there is some loading action.

and it start to infinite root… infinite loading…

there isnt any change…

you need to run it on local server(started with cocos run -p web) or web server. Chrome not allowing to execute JS when just openning index.html in it.

1 Like

Okay Ill try it !!