网络编程 | 站长之家 | 网页制作 | 图形图象 | 操作系统 | 冲浪宝典 | 软件教学 | 网络办公 | 邮件系统 | 网络安全 | 认证考试 | 系统进程
Firefox | IE | Maxthon | 迅雷 | 电驴 | BitComet | FlashGet | QQ | QQ空间 | Vista | 输入法 | Ghost | Word | Excel | wps | Powerpoint
asp | .net | php | jsp | Sql | c# | Ajax | xml | Dreamweaver | FrontPages | Javascript | css | photoshop | fireworks | Flash | Cad | Discuz!
当前位置 > 网站建设学院 > 网络编程 > Java
Tag:注入,存储过程,分页,安全,优化,xmlhttp,fso,jmail,application,session,防盗链,stream,无组件,组件,md5,乱码,缓存,加密,验证码,算法,cookies,ubb,正则表达式,水印,索引,日志,压缩,base64,url重写,上传,控件,Web.config,JDBC,函数,内存,PDF,迁移,结构,破解,编译,配置,进程,分词,IIS,Apache,Tomcat,phpmyadmin,Gzip,触发器,socket
网络编程:ASP教程,ASP.NET教程,PHP教程,JSP教程,C#教程,数据库,XML教程,Ajax,Java,Perl,Shell,VB教程,Delphi,C/C++教程,软件工程,J2EE/J2ME,移动开发
本月文章推荐
.JBuilder和JDeveloper的简单比较.
.中文内容Properties文件的编辑.
.电信网管中的Java客户端(二).
.EJB 异常处理的最佳做法(2).
.简介使用Java编写Palm OS程序的解.
.Java技巧21使用档案文件提高appl.
.如何提高Hibernate 3 启动速度.
.Spring AOP在DWR安全上的应.
.Resin EE for Windows Server +.
.几个有参考价值的java问题.
..NET与J2EE融合 JNBridgePro3.0发.
.凡是用到swing包的程序不能编译-.
.ScriptEngineMajorVersion 函数.
.java包机制(初稿).
.Java的文件与磁盘操作.
.jdbc连接各种数据库方式列表.
.jakarta-cactus-12-1.7.1.zip.
.J2EE的核心API与组件.
.Java:Sun的第22条军规.
.一个Socket服务器样板程.

Why Java can be used for games?

发表日期:2008-1-5


Why Java can be used for games

by Jacob Marner

Originally written June 15th, 2000. Last edited August 16th, 2001. 

(Note: If you have read this article before you will see that the conclusions has changed and old outdated links are removed. This is because Java technology has improved since the article originally was written and many of things no longer was true. This article view of Java is based on the use of Sun's JDK 1.3.1.)

 

IntrodUCtion

Often when I tell people that I am writing a game in Java they sniff and say something like "You must be kidding; Java is too slow", "Real men don't program Java", or "Java is not a real programming language". This opinion is very often caused by the fact that those people only have tried to run a Java applet in their browser and have seen that it runs very slowly.

In the following I will clear up some common misconceptions and make sure that you understand that Java really is useful for game programming and C++ is not the only choice. I am not saying that C++ is bad or anything; just that using Java for a gaming project can be a real benefit that should not be missed.

This articles is generally targeted at C++ programmers that are wondering or skeptical about whether Java can be used for professional games.

To understand this article you need some general programming eXPerience and at least a basic knowledge of C++. Some basic knowledge of Java is also required, but reading a small tutorial somewhere should be enough.

This article assumes that the goal is to write high performance games similar to those boxed ones being released commercially for sale in stores. The target platforms we are interested in are the PC and consoles.

Also, we will not compare Java with other high level languages such C# or Visual Basic .NET, but merely consider Java when compared with the de facto game development language of today: C++.

 

Start by opening your mind

If you are a C++ programmer then you are probably very tired of all those Java evangelists back in 1995 claiming that Java is superior is every regard and that 100% pure Java is the best thing there is. Chances are that you tried it back then, saw how awfully it ran, and the dismissed it as a web development toy.

Fortunately most the hype surrounding Java has since then died out and the compilers and virtual machines has improved significantly. 

We will now try to figure out what Java really is useful for.

I have heard the same hyped arguments and originally dispelled the use of Java as anything but a web applet language because of the many promises that was clearly not true. After all, if something needs justification then it is usually not worth the effort - usually.


上一篇:WWW访问传统客户/服务器应用的方法 人气:604
下一篇:Zeus实现XML-JAVA的数据绑定 人气:585
浏览全部Java的内容 Dreamweaver插件下载 网页广告代码 祝你圣诞节快乐 2009年新年快乐