Learn how to make payments for card games in an online room using. net core mvc.
Project name: GameCitysSystem)
Source code github address: https://github.com/antdesigner/appleGameSVN
Development Tool: vs2017
Database: mysql5.7
There are some precautions for the incomplete project
Use the "applegameData. SQL" file to initialize the mysql database. The database name is applegame.
The connection string is configured in the ConnectionStrings node of the appsettings file.
Access address: http: // 127.0.0: 8000
Enter 1 or 2 in the text input box, 1 as the administrator, and 2 as a common user. (The text input box and the login button are used in the development environment. If the text is deleted in the production environment, enter the mobile client in the production environment and click Login.
After login, you should first enter the "manage game" menu to add a game city, and then return to the "game hall" to create a room
The game project has two games: one is "apple" and the other is "two-person ratio ".
The maximum number of Apple computers is 1, and the maximum number of two-person computers is 2.
The Apple Computer is relatively complete. You can play games by yourself after entering the room.
The two-person game logic is not complete. It mainly shows that two player clients communicate with the server through webocket.
Log on to the game in different browsers with 1 and 2 connected accounts, enter the same room, 1 send messages, and 2 clients receive messages.
This simple framework mainly implements login authentication, payment, and red packet reception (parameters are configured in the Wx node in the parameter ettings configuration file) to implement single-page game based on room, the goal is to complete the front-end game business logic html of a single-page game and the business logic of the corresponding server (the dll of each game)
,
There are still many imperfections that will be improved in the future
To learn about. net core, please join the QQ Group 436035237