lua - Connecting to server using Corona SDK
问题描述
So I have found PlayFab and looked into making a multiplayer game, but I first wanted to create a login/register screen once my app opens up.
The problem is I don't know know where to start when wanting to create this. I have looked at their API, but I don't understand what it means. Especially since i've heard PlayFab is much easier when wanting to create a login/register game as it also holds the entire player data.
解决方案
You must have a host to store data on it. Whenever an user register, store his data (such as username, password and etc) on your database. You create a database (MySql) and connect to it by a PHP file. the PHP file get data from your app and insert them to database. In Corona, you write a code that it posts data to the PHP file. You can do this work with network plugin.
You can see here.
推荐阅读
- wpf - WPF Choppy / Jittery Animation related to window size
- java - How to overcome AccessControlException: access denied .. "modifyThreadGroup"?
- c# - How to convert a xls/xlsx file using Syncfusion in C#
- json.net - NewtonSoft.Json Error while deserializing object to dynamic
- python - Python: Add random number to filename (without repeating a number)
- ssl - 如果启用,icecast 会强制使用 ssl 吗?
- html - 如何添加 HTML 按钮
- java - 使用 Java 解析 ASN.1 编码
- php - 为什么 rtrim 会删除不在右边的东西?
- oracle - 在 Jenkins 中运行 PL SQL 脚本