当我获得 Java 库时,我将如何使用它们并在 Java 中使用它?

发布于 2025-01-04 18:07:07 字数 113 浏览 4 评论 0原文

我得到了 LWJGL 和 Slick2D,因为它说它们是使游戏制作变得更简单的库。安装它们后,我是否只需阅读文档并了解所有内容的含义,还是必须在其他地方深入学习?我对 Java 还很陌生,想开始学习库和所有内容。

I got LWJGL and Slick2D because it says that they're libraries to make it simpler to make games. Once I installed them do I just read the documentation and learn what everything means or do I have to learn it in-depth somewhere else? I'm pretty new to Java and want to start learning the libraries and everything.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

爱人如己 2025-01-11 18:07:07

库是可以导入的类组。例如导入java.util.*;将导入java库的util库中的所有内容。如果您不确定这些库包含什么内容,您可以查看它们的 java 文档。假设他们已经制作了一个。这是 slick2d 的: http://slick.cokeandcode.com/javadoc/

希望这会有所帮助。不太确定还能说什么:)

Libraries are groups of classes which can be imported. E.g. import java.util.*; will import everything in the util library of the java library. If you are unsure of what the libraries contain you can check their java docs. Assuming they have one made. Here is the slick2d one: http://slick.cokeandcode.com/javadoc/

Hope this helps. Not really sure what else to say :)

演多会厌 2025-01-11 18:07:07
  1. 好好学习Java语言吧!
  2. 好好学习Java语言的类(比如Collection Framework、Execution Framework...)!
  3. 深入研究你的图书馆。

否则你会发现自己一次又一次地重新发明轮子。

  1. Study the Java language well!
  2. Study the Java language classes (such as Collection Framework, Execution Framework...) well!
  3. Study your library in depth.

Otherwise you would find yourself reinventing the wheel again and again.

梦幻的心爱 2025-01-11 18:07:07

我还不会深入研究游戏编程,先学习 java,当你熟悉了之后,再学习 slick 和 lwgjl

I wouldn't dig into game programming just yet, learn about java first, and when you comfortable with that, work your way into slick and lwgjl

孤者何惧 2025-01-11 18:07:07

我想说你需要遵循这些讲座: http://www.academicearth.org /lectures/programming-methodology-intro

完成这些内容后,您将对 Java 有很好的理解。该课程向您展示如何使用名为 ACM 库的库。这是一个学习图书馆,非常有帮助。

完成此操作后,您可以阅读我写的关于 Slick2D 的书。您可以从亚马逊购买:http://www.amazon.co.uk/Java-Game-Programming-Book-Intermediate/dp/1475169175/ref=sr_1_1?s=books&ie=UTF8&qid=1346545025&sr= 1-1

这是英国链接,但在整个欧洲以及美国和加拿大也可以使用。

/无耻的自我广告

无论如何,这些讲座将教您基础水平的 Java,这确实是一个好地方。这是免费的常春藤盟校教育,没有人可以否认这一点。这也很容易理解。

I'd say that you need to follow these lectures: http://www.academicearth.org/lectures/programming-methodology-intro

Once you've done them you'll have a good understanding of Java. That course shows you how to use a library called the ACM library. It's a learning library, really helpful.

Once you've done that, you can read a book that I wrote on Slick2D. You can buy it from Amazon: http://www.amazon.co.uk/Java-Game-Programming-Book-Intermediate/dp/1475169175/ref=sr_1_1?s=books&ie=UTF8&qid=1346545025&sr=1-1

That's the UK link but it's also available throughout Europe and in the US and Canada.

/shameless self-advertising

Anyway, those lectures will teach you Java at a basic level, and that's really a good place to be. It's free Ivy League College education, and nobody can argue with that. It's really simple to understand too.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文