-
Notifications
You must be signed in to change notification settings - Fork 1
Examples
This is a list of projects available in the "examples/" directory with a short description of each one of them.
This is an implementation of a generic game based on completing the single-player game levels used for performance testing. Players can buy items from the ingame shop and use them while playing the levels. Player profile is also implemented. The "test/" directory contains a script emulating the average player session (without the delays).
Location: examples/basicGame/
This is a project from the First Steps article. Allows the client to start a battle with the monster and hit it using client requests until it dies. The monster hits back every time. Upon winning the battle, the player receives some money as a reward that is stored in his record in database. If the player loses, he receives less money. If the player disconnects during the battle, he loses automatically. Player life is restored to maximum on each battle start.
Location: examples/firstSteps/
This is the example stats collection server. Stats collection is described in Stats article.
Location: examples/stats/
This is a project from the Server Modes of Operation article. Does not do anything useful apart from showing how to compile the same project in both normal and uniserver server modes.
Location: examples/testProject/
This is a basic tic-tac-toe multiplayer game implementation with matchmaking done through the Basic matchmaking package. The implementation is limited to a single game server thread.
Location: examples/tictactoe/
This is an advanced tic-tac-toe multiplayer game implementation. Matchmaking is done through the Basic matchmaking package. Upon starting the game a game room (see the Room Manager package article) is created. If the clients are on different game server threads, one of them will be migrated before the game starts by using the Client Migration.
Location: examples/tictactoeRoom/