Cocos Creator Pit: It turns out that cocos creator is a game, it is server! ! !

I stupidly thought that we did not have a server.

  • Uploaded the test code today and found out in the test!

  • It turns out that we really have a server! It’s just a local server~! You need to open the server, and then scan the code to access! !

    To prove that we have a server, I did a test

    • 1. During the game development process, the result of directly previewing through the cocos creator game engine is:

      share picture
      Share a picture

    • This is the local server, I only realized it now!
    • 2. When the server (that is, Cocos When the Creator game is opened), scan the code to preview when it is opened, otherwise, how fast the internet speed is will be useless~!

      • When the server is on

        Share pictures

      Share a picture

    • < /ul>

    • ok, there is no problem normally
    • When the server is shut down (that is, the The game software is closed), and I tested it again

      share picture

    • Before the defense, during the test, Senior Hu Xiaodong told me that it might be better to have a server, not in this form:
      share picture
      The following form is better:
      Share pictures
      At that time, I only thought of localhost://~ from the preview of Cocos creator, but I didn’t expect that it was a local server! ! ! ! ! !

      Now I know that we have a server that is local!

Leave a Comment

Your email address will not be published.