|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/unity-5-interact-with-the-database-like-a-pro-php-mysql/
课程评论:没有评论
课程名称:Unity 5 与数据库的专业交互 - PHP MySQL 课程概述:本课程提供完全免费的软件供下载和使用,适用于PC、Linux和Mac电脑(无需付费)。本课程教您如何为使用Unity制作的视频游戏创建一个认证系统。借助认证系统,用户可以随时从任何计算机注册和登录您的游戏。这使得开发人员可以存储和检索重要数据,如玩家的电子邮件和密码,以及角色穿戴的武器和装备信息,甚至玩家背包中的物品。许多优秀的游戏都采用了这种系统,例如《魔兽世界》、《暗黑破坏神》、《战地》或《英雄联盟》。 本课程不仅仅限于Unity,还教您如何使用MySQL和PHP编程来创建与Unity交互的服务器端。课程内容易于跟随,视频讲座中展示了每一步操作,您还将获得所有源代码作为参考。大多数课程只教授如何在本地计算机上设置玩家数据的存储和检索,而不会涉及到真实服务器的设置。 课程特别强调为何要使用PHP而不是直接将Unity连接到数据库。主要是出于设计的考虑,玩家直接连接数据库并不安全,这样不仅可能暴露数据库的访问信息,而且任何人都能通过简单的SQL链接控制服务器和数据库。通过PHP层,数据库不会直接暴露给玩家,开发者能够检查服务器接收的数据,从而防止作弊行为的发生。此外,本课程也强调了不应将数据存储在玩家的硬盘上,因为本地存储的数据容易被访问和修改,可能导致不公平的游戏体验。 欢迎加入本课程,开始您的学习之旅!
Note: all software used are FREE to download and use on PC, LINUX and MAC computers (no need to pay, cheers!)This course teaches you how to create an authentication system for video games made with Unity. With the authentication system, users can sign up and login into your game from any computers at anytime. It allows you, the developers, to store and retrieve important data such as the player's email address and password, but also critical information such as which weapons and gear items characters are wearing and which items are in the player's backpack. All the great games are using it, look at world of warcraft, diablo, battlefield or league of legends.This course goes beyond Unity as it teaches you how to program the server side that will interact with Unity using MySQL and in PHP.The course is easy to follow because all the steps are show to you in the video lectures, plus you also get all the source codes as reference.Nobody teaches you how to set up storing/retrieving game player data on a real server, only on home computers as a server, and of course that will not work except to entertain a few friends.I'll see you in the course***Why use PhP and not connect Unity straight to the database?It's a matter of design. Why would you want your players to connect to the DB directly? Assuming that you do not need to use the DB that often (just to adjust some values which might happen every couple seconds) It's probably always better to have an API in place that takes care of the communication between the client and the server/DB instead of having your players connect directly to the DB.Also, it would probably mean storing your DB access information(db username and password) in your code or somewhere else on the clients side, which would mean that anyone would be able to find it out in some way. Wwhich is obviously something you don't want to happen.Now if a user calls a simple SQL link, he/she would have all control over what happens on the server and the DB. Using the PHP layer, the DB isn't exposed to the player directly and as a developer, you're able to check the data that your server receives to make sure that somebody isn't cheating.The Php server layer checks the incoming data before forwarding it to the DB or else everyone could do some terrible things such as specify some values for the URL and just send them directly to your DB.Also, you don't want to store the data locally, within the player's hard drive, because any data stored locally can be easily accessed and modified, and nefarious players could easily equip epic loot without having to defeat bosses, or change their score to a gazillion number.