This book is a tutorial on web game development
We know that simply discussing data processes is painful.
It is also more painful to discuss the program without giving the code.
The one used here is php mysql.
Then let’s discuss it in a super simple webgame way. Paired with appropriate code. Should help. Please point out any shortcomings, it will be helpful to me personally.
We do not consider the playability of the game, numerical balance and other issues. Let us first consider only the implementation of a simple example.
So what is the basic content of a webgame?
Database: Player, map, city, building, weapon, soldier.
Functions: Login, upgrade, personal battles, battles between soldiers, battles with cities, building buildings, crafting weapons, buying and selling props.
(Note: Each function must correspond to 1 or more data tables. What is listed in the database above is only the basis of the foundation.)
All resources on this website are contributed and published by netizens, or reprinted by major download sites. Please check the integrity of the software yourself! All resources on this website are for learning and reference only. Please do not use them for commercial purposes, otherwise you will be responsible for all consequences incurred! If there is any infringement, please contact us to delete and remove it. Contact information: admin@php.cn