Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Javascript game framework or library for board games?

I am trying to build a card game in Javascript. Currently I am using Raphael to draw my graphics, but I'm bad at math, like really bad. I'm wondering if there is a library or framework out there that would allow me to build a card game in Javascript without having to manually figure out the x and y coordinates of every object I want to draw.

like image 419
James P. Wright Avatar asked Jul 26 '11 03:07

James P. Wright


People also ask

Is JavaScript good for game design?

Yes! JavaScript is a great language for game development, depending on the type of game you want to create. JavaScript is best for web-based and mobile games. It's also a great language for kids to learn because it's generally easy to understand and has plenty of resources for coders readily available online.

Do any game engines use JavaScript?

Quintus. Quintus is an easy-to-learn, fun-to-use JavaScript HTML5 game engine for mobile, desktop and beyond. The Quintus engine is an HTML5 game engine designed to be modular and lightweight, with a concise JavaScript-friendly syntax.

Do most games use JavaScript?

JavaScript is often used to program games for hosting in web browsers. Today, online games usually run using the core web technology HTML5, which packages JavaScript code together with markup languages HTML and CSS. JavaScript-powered HTML5 games run in web browsers and on mobile platforms like iOS and Android.


1 Answers

You could look into a Javascript Game Engine, depending on your exact requirements you should find one for you.

Usually a game engine include facilities to manage sprites, layers, and scene; handle events; easy animations; redrawing regions, detecting collisions, etc.

Render Engine is an open source game engine that seems pretty good. Many more are available under a commercial license.

A list of both open source and commercial game engines is available here, with brief descriptions to allow you to quickly find your way (discarding the not-yet-mature engines and choosing based on features or focus).

like image 188
sergio Avatar answered Sep 21 '22 06:09

sergio