| With the global popularity of smartphones and the continuous improvement of performance,game clients allow game developers to design more beautiful and cool game graphics.On the other hand,with the improvement of 4G and 5G network bandwidth and stability,game servers can use lower network latency to improve the gaming experience,allowing players to respond more quickly and provide more timely feedback on game interaction behavior on smartphones.As one of the mainstream game types in the market,strategy games must also improve players’ operating experience to adapt to this trend of hardware upgrades.In traditional strategy games,players can only initiate battle commands and cannot manipulate battle details,so it is necessary to design a skill system that supports real-time combat,richer content,and faster iteration.This article designs and implements a skills system in a company’s SLG(Simulation Games)server engine.This article collected,organized,and analyzed the requirements of the skills system in detail during the requirements analysis phase.In the preliminary design phase,the skills system was decoupled into several subsystems and communication interfaces between subsystems were designed.In the detailed design phase,the data structure and functional processes of each subsystem were confirmed.In the coding implementation phase,functional code was written to meet the requirements of each subsystem,During the testing phase,functional and non functional tests were conducted on the system,indicating that the skill system has achieved the expected goals.Currently,the skill system has been successfully released and applied to multiple game projects.This skill system design scheme has positive implications for the rapid iteration of game servers,not only making it easy for programmers to expand,but also providing flexible and convenient skill combinations for content planners,allowing them to design skills more freely and unleash their creativity.This solution also uses the interface features of Golang programming language to reduce the coupling between the skill system and external systems,as well as between the subsystems of the skill system.At the same time,the use of polymorphism features increases the cohesion of internal logic in each subsystem. |