10. Application Case Study using the Zinx Framework
Tags: zinx, go
Published: 2023-08-16 07:26:03

### [Zinx]

[<1.Building Basic Services with Zinx Framework>](https://dev.to/aceld/1building-basic-services-with-zinx-framework-296e)
[<2. Zinx-V0.2 Simple Connection Encapsulation and Binding with Business>](https://dev.to/aceld/2-zinx-v02-simple-connection-encapsulation-and-binding-with-business-4p9g)
[<3.Design and Implementation of the Zinx Framework's Routing Module>](https://dev.to/aceld/3design-and-implementation-of-the-zinx-frameworks-routing-module-583n)
[<4.Zinx Global Configuration>](https://dev.to/aceld/4zinx-global-configuration-3jam)
[<5.Zinx Message Encapsulation Module Design and Implementation>](https://dev.to/aceld/5zinx-message-encapsulation-module-design-and-implementation-3fmc)
[<6.Design and Implementation of Zinx Multi-Router Mode>](https://dev.to/aceld/6design-and-implementation-of-zinx-multi-router-mode-19nn)
[<7. Building Zinx's Read-Write Separation Model>](https://dev.to/aceld/7-building-zinxs-read-write-separation-model-ihj)
[<8.Zinx Message Queue and Task Worker Pool Design and Implementation>](https://dev.to/aceld/8zinx-message-queue-and-task-worker-pool-design-and-implementation-12gl)
[<9. Zinx Connection Management and Property Setting>](https://dev.to/aceld/9-zinx-connection-management-and-property-setting-28ha)

### [Zinx Application - MMO Game Case Study]

[<10. Application Case Study using the Zinx Framework>](https://dev.to/aceld/10-application-case-study-using-the-zinx-framework-3ich)
[<11. MMO Online Game AOI Algorithm>](https://dev.to/aceld/11-mmo-online-game-aoi-algorithm-l7d)
[<12.Data Transmission Protocol: Protocol Buffers>](https://dev.to/aceld/12data-transmission-protocol-protocol-buffers-1jek)
[<13. MMO Game Server Application Protocol>](https://dev.to/aceld/13-mmo-game-server-application-protocol-5adl)
[<14. Building the Project and User Login>](https://dev.to/aceld/14-building-the-project-and-user-login-b7p)
[<15. World Chat System Implementation>](https://dev.to/aceld/157-world-chat-system-implementation-18li)
[<16. Online Location Information Synchronization>](https://dev.to/aceld/16-online-location-information-synchronization-3cp1)
[<17. Moving position and non-crossing grid AOI broadcasting>](https://dev.to/aceld/17-moving-position-and-non-crossing-grid-aoi-broadcasting-4nb9)
[<18. Player Logout>](https://dev.to/aceld/18-player-logout-3eln)
[<19. Movement and AOI Broadcast Across Grids>](https://dev.to/aceld/19-movement-and-aoi-broadcast-across-grids-46fe)


---

### MMO-GAME Source Code
https://github.com/aceld/zinx/tree/master/zinx_app_demo/mmo_game

---

As of the previous chapter, the core functionalities of the Zinx framework have been completed. This chapter will build a server-side application using Zinx.

The server-side application, as an application-level project within the Zinx framework, will leverage the foundation constructed in the previous chapters to develop a functional application.

## 10.1 Introduction to the Application Case

The application scenario involves an MMO (Massively Multiplayer Online) game, which includes a server-side demo with a Unity3D client. This demo implements the fundamental modules of an MMO game, such as AOI (Area Of Interest) based broadcasting within the interest range, global chat, and player position synchronization. The basic functionalities are depicted in Figure 10.1.


![Figure 10.1](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kgjr0pktqtvn8ep7ohv9.jpeg)

> Figure 10.1

The diagram depicts three game players: Player_1, Player_2, and Player_3. The game features the functionality where, when one of the players moves, the other players can observe their relative movement and changes in positional coordinates. Furthermore, when a player engages in text-based communication, other players are able to see the global chat messages.

> Please note that the client program is obtained from a third-party network resource and is not an original creation. The executable program can be downloaded from the following address: https://github.com/aceld/zinx/tree/master/zinx_app_demo/mmo_game/game_client
The provided address offers an executable program rather than the source code. This program is only compatible with the Windows platform. The content of this chapter relies solely on the usage of client-side interfaces to test the functionalities of the Zinx framework. It does not encompass commercial game development or possess equivalent capabilities of a commercial game. Regarding client logic implementation and code implementation, this chapter neither holds the authority nor the obligation to provide explanations.


**This game application case is not intended for enterprise-level game development but rather serves to encompass all interfaces of the Zinx framework. Its purpose is to utilize the Zinx framework built step by step in the previous chapters and demonstrate its practical application. Readers who have alternative application server scenarios are also welcome to leverage the Zinx framework for developing other types of application servers. **


---
Author:
discord: https://discord.gg/xQ8Xxfyfcz
zinx:   https://github.com/aceld/zinx
github: https://github.com/aceld
aceld's home: https://yuque.com/aceld