Hearth stone legend C # Development notes (BS mode demo)

Source: Internet
Author: User

Originally, this project was intended to be a CS model. The BS model is difficult for games like hearth stone.

Blizzard now only has the windows and iPad versions of hearth stone, the biggest problem is how to achieve the best customer experience on a small screen.

The windows and iPad screens are not too small, so there will be no major problems during the operation. However, if it is a mobile phone, the user experience is a huge challenge.

The IOS system can also restrict the running on the iPad, but cannot run on the iPhone. For Android, it is hard to tell whether it is pad or phone.

(The iPhone can still run hearth stone through special means)

If it is Bs hearth stone, you also need to consider the compatibility of the browser, the special effects can be perfectly reproduced, and so on, it is quite complicated (IE6 also want to run hearth stone ??)

This article is just a demo introduction and a volunteer recruitment chapter, so it does not introduce specific technologies.

(In fact, a lot of things need to be sorted out slowly)

This time the Code is updated a lot. It is very difficult to change a card engine originally designed for CS to a shared engine for CS/BS.

At the same time, the original game data is saved as XML. During XML serialization, the serialization error may occur in the old net4.0 due to the Net version issue.

Therefore, we have added support for the JSON data format. In this case, there should be no problem. (Newtonsoft. JSON. dll)

BS uses HTML5 websocket for duplex communication and supports pushing messages to browsers. (Fleck, an open-source project)

Because canvas does not support DOM operations, SVG is used for drawing. (I did not like JavaScript originally, but after writing this project, I gradually thought it was quite interesting to write JavaScript as C)

Jquery and jqueryui are used as the implementation methods of the dialog box.

Server interface:

Browser Interface

I want to find one or two partners to complete the project together.

1. Make sure you have enough time and enthusiasm for development.

2. You need a person with strong organizational skills to allocate and coordinate your work. If your organizational skills are strong, I can also listen to your command. It is best to be proficient in the collaborative work of git. I am not familiar with git, but it only performs simple operations.

3. A comrade dedicated to the document is required to convert the code of this project into a document, and careful people are required to do this. If you are a college student with strong abilities, you can use them as materials for graduation design and job search.

4. Consider creating a website for this project. The development work in the future, bug reports, and introductions to the public can all be hosted on the website.

 

Hope you can finish it this summer. Git address https://github.com/magicdict/HearthStone

It is estimated that some files are missing and have not been submitted. Can anyone compile the file and tell me the result?

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.