Make H5 Game Experience _ University study Journey

Source: Internet
Author: User
Do the English game of this project, just get the hand, my teacher told me you go to study the next HTML5, and then do on the Web page can realize the game of the wiring problem.
At first I was looking for code directly on the Internet, and then I tried to do it directly. Because the previous study of HTML and CSS, at that time should be all bad, that is, more tags, more features. Then I will soon be able to achieve the wiring problem, it is directly with the canvas tag, and then add JS code specifically for the canvas tag statement to achieve the line.
As soon as I do it, the teacher said, he saw me so quickly can realize, he and let me answer the English game this project.
I also know that my pressure began to come, because I was the realization of the line, but I have not been able to make judgments and many of the functions have not been achieved, but simply will draw lines, and is not the rule of painting lines. Later I began to borrow books to look, the Internet to read some code, I began to try to do. At first I made a click to add Mobile in the open can not appear that line, my classmate and I said this can not be, best made and flash of the kind, can be achieved after the mouse click out of a line followed by the mouse to move to the target click to connect into a line. Later I began to learn, I started to make a mouse click after a line followed by the mouse to draw, but I can not achieve a goal after the line, is the line with the mouse lines drawn. After this, this procedure is still not good, must be straight. I think for several days, but also on the internet to look at a lot of information for many days, but directly to see other people made the finished code I still do not understand, or do not know how to achieve. I was thinking of using JS. The SetInterval () setinterval () method can be used to invoke a function or a calculation expression in the specified period (in milliseconds), first let me draw the line to erase, and then draw the next line, So with a fast to the glasses can not detect the speed of the previous line to erase, leaving the direct want of the last line. After that I made the effect I wanted, but it didn't mean that I could play the game when I realized the effect. There are also to make judgments and achieve the final game to the effect, so I summed up the next, first line is not a scribble, not to draw a few on a few, (that game is the Apple link game, connected to the right basket) a total of 10 apples, So draw a maximum of 10 lines. When the correct drawing line is drawn, the correct sound and line will not disappear, so the request is immediately judged. This can only find JS to help judge, then think, that is not all in the use of JS, and HTML statements used very little, the basic game is to rely on JS to write. Such a think I still won't, I began to read, one weeks have been reading, of course, I also learned a lot. At that time the teacher asked me how to do, my heart is thinking that now is the equivalent of anything to make, but I read this week to understand a lot of books, but I have not tried to do, I want to give myself a little pressure so that will be more motivated to write. And then I told the teacher that it would be okay, (this is also because I want to give myself a little pressure, the result is not a little pressure but a lot of pressure) the teacher and let me see him tomorrow, I suddenly panic, I think that will give me some time, then I regret, I immediately began to do, The start of the time is at night 7 o'clock almost began to do, but it is sad that I arrived at the night of 11 o'clock or the equivalent of nothing to do, then my heart will collapse, I was in accordance with the book has a general game to do, but still can not achieve. 1 o'clock in the morning to make a connection of the general function, roommates are going to sleep, I am not too embarrassed to salvage them, so I went to sleep. At nightHow can not sleep, has been thinking how to achieve judgment. Day early morning I get up, has been writing, noon time finally made out, I am super happy to hand over the game. But because the game is to let go on the machine, the teacher brought the game to the publishing house they do not want this game scheme, because this function on the phone is useless, so changed to drag the Apple game. T_t immediately feel the whole people are bad, hard to make the game to do but don't, although drag the Apple will be simple, but always want to put me to do that game can use, because I really spent a lot of effort on. No way, we still have to do things according to the requirements. Fortunately there is the basis for the line, soon I will make a drag-and-drop game, drag the game than the simple connection.
I gave the drag game to the teacher, and soon there was a problem. That game can be implemented on the computer, but you can do it on the phone. Because the touch event on the phone is not the same, you should specifically use the library that writes the mobile end. That is another difficult point, that is to give me time is not much, I want to learn immediately, do. I find the reason and find the code to try but still is the question of time, can't let me spend a lot of time in this above, so I look for the book directly, the book is used to Lufylegend library. This library is very easy to use, I will follow the example of the book plus their own change after finally done, although there are many need to modify the views, but also quickly can be changed.
Although the process of this project is difficult, but I can feel that I have in progress, progress quickly, behind the game is also very soon to start. This game is not a big game, but it can also make me progress. In this project I can deeply understand the importance of the algorithm, I suggest to learn programming friends, must pay attention to the algorithm. Grammar can be quickly used, because the language is interlinked, the important thing is the idea, as long as you have your thoughts, you must be able to do it. There is not to give up, when I do the wiring problem several times want to give up, several times failed to try several times. But I think this is the first time the teacher gave me the project, I do not want to let him down, I also want to prove that I can, and finally made out. Just made out when super happy, the mood is super good, before the hard work has not been wasted, so be sure not to give up, in case the next second can be done. I summarize this project for my progress, 1. Algorithm, the importance of ideas. 2. Do things do not give up easily, to have confidence in themselves. 3. It's a pleasure to find that you can do something.

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.