Home >Backend Development >C#.Net Tutorial >.net core mvc implements a simple framework for WeChat payment and instant messaging in online room chess and card games
Project name: GameCitysSystem
Source code github address:
Development tools: vs2017
Database: mysql5.7
Because The project is currently incomplete and there are some precautions
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 corresponding file in appsettings
The access address is: http://127.0.0:8000
When logging in, enter 1 or 2 in the text input box, 1 is the administrator, and 2 is an ordinary user. (This text input box and login button are used in the development environment. If they are in the production environment, they should be deleted. In the production environment, enter the mobile WeChat client and click Login
. After logging in, you should first enter the "Manage Games" menu to add a game city, and then Return to the "Game Hall" and create a new room
The game project has two games, one is "Mac" and the other is "Two Players".
The upper limit of the number of people on the Apple machine is 1, and the upper limit of the number of people in the two-person ratio is 2.
The Apple machine is relatively complete, and you can play the game alone after entering the room
Two people in the ratio game The logic is not perfect, it mainly shows that two player clients communicate with the server through webocket.
Use 1 and 2 consecutive accounts to log in to the game in different browsers, enter the same room, 1 sends a message, 2 clients can receive the message.
This simple framework mainly implements WeChat login authentication, WeChat payment, and WeChat red envelope receiving (WeChat parameters are in the Wx node in the appsettings configuration file configuration) to implement a room-based single-page game. The goal is to only need to complete the front-end game business logic html of the single-page game and the corresponding server-side business logic (dll for each game)
,
There are still many imperfections, which will be improved in the future
The above is the detailed content of .net core mvc implements a simple framework for WeChat payment and instant messaging in online room chess and card games. For more information, please follow other related articles on the PHP Chinese website!