When the "Angry Birds" game is full of fortune and full of money, I believe many programmers are eager to develop games, but I also believe that most programmers who have never developed games will be discouraged from this untested field. In fact, the meeting is not difficult, but not difficult. As long as you try it, you will find that game development is actually very simple.
If you don't believe what I said, the game you introduced today is an example.
Trial: http://www.aqee.net/docs/DuckHunt/
Javascript has always been recognized by the programming world as a language that cannot do major things :). Most programmers use this language because it is very studious. I will tell you, as long as you have js, you will be able to develop games, good games, and on-site games. This "Sniper Duck" game was written in pure Javascript. The author spent 20 hours developing this 500-line Javascript code game, although not as good as "Angry Birds ", but there are basically a variety of game elements. If you can design it carefully, I believe it will not be lost in Angry Birds. You can try this "Sniper Duck" game to see the effect.
How is it? Good. Games are programs. You can program and develop games, right!
The game source code you can download from here: https://github.com/MattSurabian/DuckHunt-JS
Original article: http://www.aqee.net/javascript-duck-hunt-js/
- 16 excellent JavaScript tutorials and library recommendations
- JavaScript creative game: Draw a villain
- The best way to learn JavaScript
- The Awakening of an anti-JavaScript activist
- 10 amazing HTML5 and JavaScript Effects