Unity simple online games (using Websocket to support browser running), unitywebsocket

Source: Internet
Author: User

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




Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.