A great start to build your online rpg !!!
Login to your account
The fourth version. Unity3d client-server MMO RPG. MySQL. Creating characters.
When you enter your login and password sends a request to the server. The server checks its database. If everything is correct, then the client is connected.
Added handling and notification of errors (wrong username or password, the server is not available, etc.)
Display of characters
Next you will see a list of characters on the account. Implemented a system of creating and deleting characters. This is the same all synchronized with the server.
Predvizhenie. Camera. Dynamic loading of the world.
Choose your character, go in the game. Displayed is the one character that we have chosen. In this project, a lot of scripts, one of them is MovePlayer.cs, he is responsible for the movement of the character models.
Another script to control the camera (the camera is implemented according to the principle of popular MMO RPG). Just implement dynamic loading of the game world. This allows you to create a "seamless" game world.
Other players. Radius of the review.
The display of models of other players display their movements, rotation. This all goes through the server. Other players are displayed, not all but only those that are within view.
Based on the radius of the review, the server selects a formula from a MySQL database only certain users. If another player is out of range of your review, it is you no longer displayed until it again comes to a radius of the review.
Characteristics. The system of "pumping".
Players added characteristics. Some characteristics are calculated according to the formula. Health depends on stamina, attack from ... etc. Characteristics can be improved by increasing the level of points are given characteristics. Gain experience occurs when killing monsters (Monsters also have several characteristics). The amount of experience needed to reach the next level is calculated according to the formula. Each level is extracted more and more difficult.
All the characteristics of the player is taken from the server and stored there too.
Target. The choice of targets.
When you click on the monster he is selected and displayed his health.
That is implemented Target. Target then sent to the other scripts to attack, etc. Almost to the end realized Target Tab key selects the first nearby enemies and then those that continue, etc.
But Target Tab key is commented out, since not realized until the end (there are a couple little things).
Added ability to attack (monsters just know how to do damage). The minimum and maximum damage calculated by the formula.
Then the damage inflicted. I will not reveal all the details . The attack depends on the weapon. Attack animation animated randomly selected for attack.
Inventory. Selection of subjects.
Added inventory. It is easily extensible, you can easily add your own items to the game. Implemented dressing and removal of weapons of things. All equipment is regularly stored on the server. And from the server takes the contents of the inventory (as in all online rpg).
With monsters spiders falls weapons. It can pick up his inventory.
Interface panel skills, etc.
There is an interface that displays all the necessary information. The level of the character and his name. Bars health, mana and experience. Bar lives of the selected monster (Target).
Displays inventory. Panel skills (skills panel). Window with the characteristics of the character. Button to open the characteristics
inventory and exit button from the game. And the actual inventory, which by the way can be dragged around the screen.