Home >Web Front-end >Front-end Q&A >Can javascript be used to develop games?
Javascript can develop games. Some of the games implemented by JavaScript are: 1. Mario; 2. Bunny Hunt; 3. OnOff; 4. Everyones sky, etc.
The operating environment of this article: Windows 10 system, javascript version 1.8.5, DELL G3 computer
Can javascript develop games?
javascript can develop games.
For many web games, the main front-end is developed using JavaScript; there are also WeChat mini-games that can also be written using JS. Games developed based on JavaScript are the only ones that work across desktop, web and mobile platforms.
As JavaScript combined with HTML5 development becomes more and more popular, many new features supported by browsers are being used by users. At the same time, many new games are being developed using JavaScript.
Some games implemented in JavaScript:
1. Mario (game address: http://jsmario.com.ar/)
The legendary Mario web version realizes all the functions and levels of Super Mario in the Famicom era one to one, and the level of detail is not inferior to the original game.
Dependent libraries: None
2. Bunny Hunt (game address: http://www.themaninblue.com/experiment/BunnyHunt/)
huntRabbit, a simple and playable web hunting game, does not use third-party support libraries and is implemented directly using css and JavasScript.
Dependent libraries: None
3. OnOff (game address: https://js13kgames.com/games/onoff/index.html)
This is a very challenging level game. The simple design and interesting sound effects make the game wonderful. Dodge spikes, jump over pits, and complete 25 levels from easy to difficult by switching scenes. The author also provides a cool level editor, allowing you to experience the fun of creating levels.
4. Everyone's sky (game address: https://js13kgames.com/games/everyones-sky/index.html)
Everyone's sky is A classic science fiction style space adventure game. In addition to focusing on space adventure, this game also has some RPG game elements. In the game, by controlling the movement of the spacecraft, you can unite with other forces in space to collect resources. You can make allies and complete tasks peacefully, or you can attack all forces you encounter. Peace or destruction, it's in your hands.
Recommended study: "javascript basic tutorial"
The above is the detailed content of Can javascript be used to develop games?. For more information, please follow other related articles on the PHP Chinese website!