473,386 Members | 1,883 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Javascript book for gaming?

I am trying to create an online game with others and javascript is a key part of it... I know java but not javascript - any suggestions for good books toward online gaming development? I have listed a few below i searched online.. any suggestions to any? thanks!

Professional JavaScript for Web Developers (Wrox Programmer to Programmer) by Nicholas C. Zakas

Head First JavaScript

Learning JavaScript, 2nd Edition by Shelley Powers

Learning PHP, MySQL, and javascript: A Step-By-Step Guide to Creating Dynamic Websites (Animal Guide) by Robin Nixon

Beginning JavaScript by Paul Wilton and Jeremy McPeak

Beginning HTML, XHTML, CSS, and JavaScript by Jon Duckett (Paperback - Dec 30, 2009)

Beginning Scripting Through Game Creation by Jeanine Meyer (Paperback - Jan 25, 2008)
Jan 12 '10 #1
12 2933
Most books about online game development do not center around Javascript. If you are looking to create the next runescape, do not use javascript. It is too slow. Given that you are developing this project with others, it sounds like a bigger project that maybe java or flash would be better suited to (and you'll find more books).

If it's a small, simple game with no sound requirements then you probably don't need specilised knowledge of how to build a game in javascript. Javascript is a very simple language which can elegantly manipulate an HTML page. As long as you have a clear idea of what needs to be manipulated, and when, any javascript book should give you the tools you need to do it.

If your game has more complex graphics requirements, you would be better off using something like jQuery. jQuery books are also available but I've never used it. The jsDraw2D and Walter Zorn graphics libraries draw non-standard shapes, such as curves, using javascript (which jQuery doesn't do) but to use them you'll need some basic javascript knowledge anyway.

So if you really need to use javascript, I would say any of the below books but especially those which deal exclusivly with javascript because these usually go into more detail.
Jan 13 '10 #2
thanks for input. Well we are doing a browser game and isnt javascript good with not reloading etc all the time? and the game is not going to be graphics intensive as well either. Is there some major hurdles with javascript? and is flash better all around?
Jan 13 '10 #3
True, javascript doesn't need to reload all the time. Neither does flash, for that matter, or java. Javascript is slow on graphics and so on - especially if you want to draw lines or curves (as opposed to boxes and pictures). The other "major hurdle" with javascript is the lack of sound support. Sure, you could use an <embed> tag, but not all browsers support this. Also, none of these languages can actually do anything server-side. Using technology called AJAX, javascript can read files from the server but not write them - so if you want a "persistent" game people can return to, you'll need at least some CGI or PHP or ASP.

Personally, however, I prefer javascript to flash because:
  • it's free
  • it's easier to learn, in my opinion
  • code is simple to manage, as it's a single script and not a load of behaviors attached to objects
  • you can intergrate it with your HTML code easily, forms look natural because they're HTML etc

So yeah, if it's small and simple, go for it!
Jan 13 '10 #4
it's prob ably wont be small or simple - it will be served with goal of hundreds/thousands players play simultaneously in one session. but there will be no sound and it will be low graphic so i guess java script still decent?
Jan 13 '10 #5
acoder
16,027 Expert Mod 8TB
When you say playing simultaneously, do you mean multi-player? If so, you will need some server-side code too. What is the game supposed to do, i.e. how complex is it? If it's going to be quite complex, you may need to look at memory, efficiency, performance, code size, page load time, etc.

PS. most of those books are general books, not necessarily geared towards gaming.
Jan 13 '10 #6
yes i mean multiplayer. Basically players all play on the same map and there will be server side coding needed (in php/mysql). Javascript will be the front end stuff. The game is basically you build towns and fight eachother using different units. but we think java script will be good for the front end? If those books might not be good do you have a suggestion for another? thanks
Jan 13 '10 #7
Dormilich
8,658 Expert Mod 8TB
well, looking at your book list, JavaScript for Beginners may not be enough, since OOP might be better suited here (although that depends on the complexity of the script). I think, you should use a framework to write the code.

points of interest:
  • what is OOP (what can it do and what not)
  • JavaScript objects & the "this" keyword
  • interfaces, DOM & Events
  • prototype based inheritance
  • Closures
  • AJAX
Jan 13 '10 #8
OOP you mean object oriented programming right? Yeah we are going to have to use AJAX since we dont want to reload all the time. DOM also came up in our discussion as well.

what about:
Professional JavaScript for Web Developers (Wrox Programmer to Programmer) by Nicholas C. Zakas

Beginning HTML, XHTML, CSS, and JavaScript by Jon Duckett (Paperback - Dec 30, 2009)

Beginning Scripting Through Game Creation by Jeanine Meyer (Paperback - Jan 25, 2008)

? I think the first 2 focuses on related technologies i will be using - html, css and web. The last book i am not sure how it will fare....
Jan 13 '10 #9
Dormilich
8,658 Expert Mod 8TB
well, I can’t really help you with books, because I never really used one.
Jan 13 '10 #10
any good sites you found very good for beg-adv? There are a lot of sites to go through heh...
Jan 13 '10 #11
Dormilich
8,658 Expert Mod 8TB
I’ve been reading quite a bit at A List Apart. the other stuff is just googling for articles/blogs having advanced topics … and then practice.
Jan 13 '10 #12
acoder
16,027 Expert Mod 8TB
Check out some of the links in the Offsite Links sticky thread. One that is always recommended is MDC.
Jan 15 '10 #13

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Fred | last post by:
I have the book by Nick Heinle (O'Reily publishing), first edition, 1997. I lost my accompanying cdrom when I moved. Does anyone have this cdrom they can zip up? I'm sure it's not large since...
1
by: Olivier | last post by:
Hi, What would you suggest as an complete, uptodate javascript reference book ? Thanks Olivier
7
by: Cyberdog | last post by:
Hi, I want to start learning Javascript. Can anyone please recommend a good book for a beginner.Thanks
1
by: Eric | last post by:
Hi, What is the best Javascript book available? Not in terms of syntax (you can look that up easily), but in terms of project development, to accomplish a particular task, maybe like a cookbook?...
9
by: przemas_r | last post by:
Hi! I've been recently searching for a book on javascript. There are many books dedicated to advanced javascript programmers (mainly reference material or cookbooks) and some which would...
7
by: Tim Johnson | last post by:
I'm an experienced programmer, but new to Javascript. For OOP: python and C++ backgrounds, among others I have one book on js - (Javascript Application Cookbook). I'd welcome further...
5
by: Joel Byrd | last post by:
Can someone suggest a good javascript book? I already purchased one by Wrox entitled "Professional Javascript for Web Developers". Could someone also give me their review of this book? Thanks a...
14
by: testcpp | last post by:
Hi experts, What's considered the best book to learn javascript? I searched this newsgroup but the postings are over five years old, so is there a good book to learn. I've searched Amazon and...
1
by: donalmurtagh | last post by:
Hi, I'm an experienced java programmer and am also familiar with (X)HTML and CSS, though certainly no expert on either. I know absolutely nothing about javascript, but reckon it's time I started...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.