• What are the pros and cons of using JavaScript alone, Quintus and Phaser for HTML (JavaScript) gave
    6 replies, posted
I have decided to take up HTML game programming to learn something new. To do this I have discovered that using JavaScript alone can be a painful process and it is much easier to use a library such as Quintus or Phaser. I have also not found any good tutorials for JavaScript alone (using things like canvas). I want to get serious with one of the three, because web based languages are a challenge to me (seeing as I have only ever done object-oriented languages, and my first detailed language was C++. It would be a real pain to have to change half way through! Please could somebody outline the pros and cons of using JavaScript alone, Quintus and Phaser for HTML game development. I am looking for information like simplicity, how things run and compatibility (and anything else you can add!). Thanks in advance! ~Joe PS: I did ask this on Stack Overflow, but, as usual, the questions was closed for some random reason nearly instantly. (Me and my friends have had bad experiences with Stack Overflow, despite the nature of our questions being varied) Quintus and Phaser are both HTML5 game libraries/engines.
Speaking as someone who has made raw JS+Canvas games don't do it unless you're a masochist who knows exactly what they're doing. Having a library do all the bollocks for you so you can focus on actually making a game is preferable.
[QUOTE=Lexic;44469992]Speaking as someone who has made raw JS+Canvas games don't do it unless you're a masochist who knows exactly what they're doing. Having a library do all the bollocks for you so you can focus on actually making a game is preferable.[/QUOTE] Thanks for the response - I am fully capable of learning hot to make JavaScript games from scratch. I have made a basic FPS from scratch (with OpenGL) in C++, I had no pre-built game libraries to do anything. That being said, if using a library has no extra advantages I deem worth it, I will just learn how to do some JavaScript games from scratch, but right now I am failing to see the advantages of using a library, other than some pre-defined classes. I also don't know which library to choose, Quintus or Phaser - there is no comparison :(
Can't help you there, I've never heard of either. I used [url=http://craftyjs.com/]CraftyJS[/url] in the past and it didn't have any major defects. Using a library for 2D html games is useful if you just want to get a game done and out there. Sure you could do everything yourself, but why bother if someone else has already the generic stuff? On the other hand, writing 2D games isn't exactly arduous. You don't [i]need[/i] a library. I wouldn't even consider not using [url=http://threejs.org/]three.js[/url] for 3D though.
[QUOTE=Lexic;44470283]Can't help you there, I've never heard of either. I used [url=http://craftyjs.com/]CraftyJS[/url] in the past and it didn't have any major defects. Using a library for 2D html games is useful if you just want to get a game done and out there. Sure you could do everything yourself, but why bother if someone else has already the generic stuff? On the other hand, writing 2D games isn't exactly arduous. You don't [i]need[/i] a library. I wouldn't even consider not using [url=http://threejs.org/]three.js[/url] for 3D though.[/QUOTE] Although your starting to tempt me here - 3d games in the browser!, the reason I wanted to make HTML games was to make games that could be run on basically any computer, and where fairly simple (no fancy exo-quad-core-creazy-betterthanlifegraphics game, something like Terraria). I am surprised you have not heard of either, they are only what came up first on my Google searches :P If anyone could help out any more, it would be greatly appreciated!
I made my college game assignments using Phaser, and I pretty much dived in without any canvas/webgl knowledge. I was able to make my game really easily and it worked fine on my phone using cordova to convert it to an app. I made a pretty decent game in ~500 lines of JavaScript. They have a really good irc/forum for if you need help and the example projects are really useful.
I found this website a while ago which compares available HTML5 game engines. Perhaps it might help you decide which library is right for your project. [url]http://html5gameengine.com/[/url]
Sorry, you need to Log In to post a reply to this thread.