"Guess-and-see" game development

Source: Internet
Author: User

Guess the game development process Introduction

1. Interface design

The interface design contains, "Open Directory" button to determine the guessing game of the picture directory, "Open File" button to determine the guessed name, the game interface in the middle of the "tag" to display the guessed name. Next is the use of a control PictureBox that puts three pictures. Because of the simple interface, this link takes little time.

2. Function realization

After the basic interface design is complete, the function realizes the link. Guess the core function of the game is to randomly generate three images and their names, with a randomly occurring name to match the randomly occurring image name to determine whether to guess the result. First, click on "Open Directory" after selecting the picture catalog, and then randomly display the three images in the control PictureBox, and then through "Open file" to read a TXT file that holds the image name range, in order to lock the range of the name to be guessed, that is, in the resulting three picture names, Select a name as the name to be guessed, and finally the PictureBox mouse event listener to determine if the name of the clicked image matches the name to be guessed, and if the match appears a "you guessed right!" Whether to continue the Game "selection dialog box, if it does not match then there is a" you guessed wrong! Whether to continue the Game "selection dialog box. The game results are written to a file regardless of whether the game ends.


Storage and loading of data

This time the most impact on my progress is the installation and use of MySQL, MySQL installation took me nearly two days, for no reason, after adapting to SQL, it is difficult to adapt to the MySQL console operation, and MySQL in several versions between 5.0 and 5.6, in the installation and interface operation There are a lot of different places, so I tried a variety of methods, finally through the XAMPP this software to complete the installation of Phpmysqladmin, during the period spent a lot of energy and time through Baidu to find various solutions, in fact, the online example mostly saved In the case, often he is at that moment, and in my side of the situation, so in the learning of other people's operation, not the first time to imitate, first learn the ideas of others, and then through the consolidation deepened, otherwise each computer's actual situation is not the same, it is impossible to completely copy the operation of other computer programs.

Moreover, in the running aspect, MySQL to my biggest problem is garbled problem, on-line also has to inform many methods, for example in C#,mysql all set good utf-8, or through Engine=innodb Defaultcharset=utf8, wait code to solve garbled problem, Look at a lot of, also real to do a lot of, is no way to solve, in the design of the whole program found themselves even the database is not connected (Chinese garbled), so can only discard the data saved to the database, and then the data are stored in txt.


Summarize:

For the development of small games have done quite a lot, guess the interface requirements are not high, mainly on the data processing, the advantage of C # is that you can directly pull the module, the design of the graphical interface, operation and monitoring implementation is also very easy, in fact, would like to do the web version of the things, and then the time of the exam is not arranged Made a simple guess. I think that for individuals, programming is really a personal interest, forcing does not make a good impact, right. There are a variety of ways to accomplish a task, but there is only one way to learn.

"Guess-and-see" game development

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.