Unity simple online games (using Websocket to support browser running), unitywebsocket
Opening
I've always wanted to make a Unity online game. I researched a small Websocket just a while ago, and then implemented it on Unity WebGL. The effect is good, so I wrote a complete small game.
How to play
There are various foods in the scene for players to pick up (squash, corn, watermelon, kale, etc.). The food will make the player bigger, and the size is related to the food size.
The size of the player determines the level of the player. The higher the level among the players, the lower the level can be eaten.
The game has no time limit and no limit on the number of times. PS: If you have any fun game suggestions, you can use Tell Me. I will try my best to incorporate more gameplay in the future.
operating
Drag the screen to rotate the viewing angle,
[WASD] Back, Left, Right [Space] Jump. Joysticks will be added for subsequent mobile phone releases.
download
PC version download: http://pan.baidu.com/s/1bnT67qJ
Browser online: http://115.28.245.188/web/index.html (tested it seems that only FireFox works perfectly now)
GitHub source connection: https://github.com/y85171642/SimpleOnlineGame
Follow up
A few posts will follow:
1. Describe the methods and precautions for using Websocket
2. Simple player movement synchronization method
3.XML generation tool parsing method and use