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:
- 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
-
< /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
-
It turns out that it’s only related to the Internet speed! ! ! The results that cannot be scanned by the QR code have nothing to do with our server! !
Before the defense, during the test, Senior Hu Xiaodong told me that it might be better to have a server, not in this form:
The following form is better:
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!