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

问题描述

我已经一段时间的Web程序员,我也可以在Java程序。我有一个小的多人RPG游戏,我想要的工作的想法。它将通过在用户的Web浏览器的Java小程序进行播放。

我写的设计文档和游戏的规格。我现在想知道的是我怎么能开发游戏?我已经在过去类似Windows的商业应用似乎我将不得不建立自己的小部件/控制游戏的UI能工作,内置的小部件为文本框,下拉菜单等。随着游戏编程。

这是我的具体问题记:

1)如何同时游戏中的图像,声音等被下载进度条显示正在载入消息。 (使用Java小程序)

2)如何使用其自己的菜单,控制等创建游戏的用户界面如通过点击地图图标,将出现一个映射到它们。点击图标朋友会让他们聊天,他们的朋友,等等。

3)等,一般游戏的发展问题,我应该知道,像我是否应该使用2D或3D图形,游戏物理,等等。

如果有一本书,这将有助于我一个很好的建议,也同意。


解决方案

  1. ,最快的途径是打包在JAR文件中的一切。默认的屏幕确实表现出了一些小的能力的进度条自定义。您可以编写自定义code跟踪,管理和下载文件,但我个人建议不要这条路线。如果您搜索的applet装载机你会发现更多的信息。


  2. 我不是100%肯定你的意思,但你可以使用的以同样的方式,你可以在应用程序中使用它们。使用一个JButton与图像是相当琐碎,然后勾在actionPerformed方法事件code。


  3. 您可能会遇到的最大问题是动画和的的。我问了一下this早。


页面有一大堆的游戏开发有用的链接。 是一个开源框架,值得一试 - 即使你不使用框架,你可以调查code。

你是否应该使用Java小程序与否似乎出这个问题的范围,但很多上述的答案给出有关是否使用Java小应用程序的目标(在所有或没有原因)。如果它是一个游戏,个人锻炼学习Java,然后这是一个伟大的方法。如果你希望把它公开,你需要考虑是否在当前是您的需求不够高。

事情已经在applet世界最近更改。由于它更具有竞争力和Flash - 下载大小为少(4Mb的下典型值),启动时间减少和推出。

I've been a web programmer for a while and I can also program in Java. I have an idea for a small, multiplayer RPG game that I want to work on. It will be played through a java applet in the user's web browser.

I have written the design document and specifications of the gameplay. What I'd like to know now is how I can develop the game? I've worked only with windows-like business apps in the past, with built-in widgets for textboxes, dropdowns, etc. With game programming it seems that I would have to build my own widget/controls for the UI of the game.

These are the specific questions I have in mind:

1) How to display a 'loading...' message with a progress bar while the game's images, sound, etc are being downloaded. (Using the java applet)

2) How to create the UI of the game with its own menu, controls, etc. Such as by clicking the map icon it would show up a map to them. Clicking the friends icon would let them chat to their friends, etc.

3) And other, general game development issues that i should know about, like whether I should use 2D or 3D graphics, physics in games, etc.

If there's a good recommendation for a book that will help me, do share.

解决方案
  1. The easiest route is to package everything in a Jar file. The default screen does show a progress bar with some small ability to customise. You can write custom code to keep track, manage and download files but I would personally advise against this route. If you search for applet loaders you will find more information.

  2. I'm not 100% sure what you mean, but you can use Swing components in the same way you can use them in applications. Use a JButton with an image is quite trivial, then hook the event code in the actionPerformed method.

  3. The biggest problem you will probably come across is animation and the EDT. I asked about this earlier.

This page has a whole bunch of useful links for game development. Pulp core is an open source framework worth checking out - even if you don't use the framework you can investigate the code.

Whether you should use Java applets or not seems out of scope of this question, but a lot of the above answers give objective (or no reasons at all) about whether to use Java applets. If it's a game for a personal exercise to learn Java then it's a great approach. If you wish to make it public you need to consider whether the current adoption levels are high enough for your needs.

Things have changed in the applet world recently. Since 1.6 update 10 it is much more competitive with Flash - the download size is smaller (at typically under 4Mb), the startup time is reduced and a new scaling look and feel was introduced.

这篇关于如何学习游戏开发?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-09 07:53