Javascript游戏书? [英] Javascript book for gaming?

查看:78
本文介绍了Javascript游戏书?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试与其他人一起创建一个在线游戏,javascript是其中的关键部分...我知道java但不是javascript - 对于在线游戏开发的好书的任何建议?我列出了一些我在网上搜索过的..有什么建议吗?谢谢!


Nicholas C. Zakas为Web开发人员提供的专业JavaScript(Wrox程序员到程序员)


首先是JavaScript
< br $>
学习JavaScript,第2版由Shelley Powers学习


学习PHP,MySQL和javascript :分步指南由Robin Nixon创建动态网站(动物指南)


由Paul Wilton和Jeremy McPeak开始JavaScript


开始HTML,XHTML,CSS和Jon Duckett撰写的JavaScript(平装 - 2009年12月30日)


Jeanine Meyer通过游戏创作开始编写脚本(平装 - 2008年1月25日)

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)

推荐答案

大多数关于在线游戏开发的书籍并不以Javascript为中心。如果您要创建下一个runescape,请不要使用javascript。太慢了。鉴于你正在与其他人一起开发这个项目,这听起来像一个更大的项目,也许java或flash更适合(并且你会找到更多的书)。


如果它是一个小而简单的游戏,没有声音要求,那么你可能不需要专门知道如何在javascript中构建游戏。 Javascript是一种非常简单的语言,可以优雅地操作HTML页面。只要您清楚地了解需要操作的内容,以及何时,任何javascript书籍都应该为您提供执行此操作所需的工具。


如果您的游戏有更复杂的图形要求,那么最好使用像jQuery这样的东西。 jQuery书籍也可用,但我从未使用过它。 jsDraw2D和Walter Zorn图形库使用javascript(jQuery不做)绘制非标准形状,如曲线,但要使用它们,无论如何你都需要一些基本的javascript知识。

所以,如果你真的需要使用javascript,我会说下面的任何一本书,特别是那些与javascript独家交易的书,因为这些通常会详细介绍。
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.


谢谢输入。好吧,我们正在做一个浏览器游戏,并不是javascript好,没有重新加载等所有?并且游戏也不会是图形密集型的。 javascript有一些主要障碍吗?并且闪存更好吗?
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?


是的,javascript不需要一直重新加载。闪存,就此而言,也不是java。 Javascript在图形上很慢等等 - 特别是如果你想绘制线条或曲线(而不是框和图片)。另一个主要障碍用javascript是缺乏声音支持。当然,你可以使用< embed>标签,但并非所有浏览器都支持此功能。而且,这些语言都不能在服务器端实际执行任何操作。使用称为AJAX的技术,javascript可以从服务器读取文件但不能写入它们 - 所以如果你想要一个持久的话。游戏人可以返回,你至少需要一些CGI或PHP或ASP。


但就个人而言,我更喜欢使用javascript闪存,因为:
  • it
  • 它更容易学习,在我看来
  • 代码管理起来很简单,因为它是一个单独的脚本而不是附加到的一系列行为对象
  • 你可以轻松地将它与HTML代码集成,表单看起来很自然,因为它们是HTML等等。
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


这篇关于Javascript游戏书?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆