I'm attempting to build a tile-based game in JavaScript, using HTML5 canvas. There are many engines to choose from, such as
... and the list goes on and on.
However, there does not seem to be one de facto standard among all these different implementations. Essentially I am looking for the jQuery of JavaScript game engines. One that is backed by a (larger) community, has excellent documentation and is actively maintained. Most of these just seem like one-man projects to me.
What is the de facto standard for 2D game engines in JavaScript?
Additionally, I would be very interested in experiences with actual implementations (other than demo Pong and Pac-Man games).
js. Babylon JS is an incredibly powerful, beautiful, and simple rendering engine. It gives programmers the power to create almost everything, ranging from animated logos to completely interactive 3D games, in your browser.
js. Babylon. js is an open-source 3D JavaScript game engine for web browsers, which uses WebGL and Web Audio API to run games in a web browser without other plugins.
melonJS is an open source HTML5 game engine that empowers developers and designers to focus on content. The framework provides a comprehensive collection of components and support for a number of third-party tools. Giving you a powerful combination that can be used wholesale or piecemeal.
There isn't one right now and I would go on to say that there may never be one in the same way that there is jQuery, for the simple fact that most (commercial) games are going to want to be mercilessly performant, which means using as little extra cruft as possible, and many of these libraries add unnecessary things or performance hits where it may not be desired.
That is not to say they won't be used at all. All of the above libraries are probably good for a great deal of small(er) games.
But I imagine on large projects many studios will find themselves starting with a library until they hit a performance wall, and then writing all the components they used in the library themselves in order to keep only the thin bits that they need.
If there is one that becomes popular it will almost certainly be be modular like MooTools (the second most popular JavaScript library), where it tries to be compact and lets you select only the components you want to use. I imagine you'll find a lot of games in the future that have a very small engine just for handling sound or just for handling images or a 2D isomorphic board, instead of games that have a (large) library that attempts to handle every possible kind of 2D game.
Anyway, if you simply want to find the most popular JavaScript engine then your best bet over the coming months is to use Google (page rank) to determine most popular. Searching for "2D game engines JavaScript/Canvas" will give you a pretty good idea of which is the most linked-to (popular) library at any given time.
(After all, try searching Google for "JavaScript library". You can guess the first result I bet!)
I found this question while searching for an engine of my own. I just want to add this site here because it offers a good overview over a lot of HTML5 game engines:
http://html5gameengine.com/
There are also some nice filters like licenses/costs, release date and user rating.
(PS: I'm not related to this site in any way)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With