国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 開發設計 > 正文

Why Java can be used for games?

2019-11-18 15:12:57
字體:
來源:轉載
供稿:網友

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.



發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 阆中市| 新安县| 林西县| 南昌市| 星子县| 中宁县| 福鼎市| 南木林县| 利川市| 东丰县| 饶平县| 天柱县| 临颍县| 兰西县| 台东县| 诸暨市| 沭阳县| 武定县| 新乡市| 平阴县| 青岛市| 铜梁县| 荔浦县| 从江县| 长葛市| 黑水县| 娱乐| 朔州市| 安新县| 南皮县| 苍溪县| 思南县| 阳谷县| 远安县| 余庆县| 枣阳市| 麦盖提县| 沛县| 汕尾市| 共和县| 建宁县|