Learn how to use. net core mvc to make a simple online room card game WeChat payment and timely communication framework, coremvc

Source: Internet
Author: User

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

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.