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

时间:2022-10-26 20:56:28

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.

我得到了LWJGL和Slick2D,因为它说它们是图书馆,使游戏更简单。一旦我安装它们,我只是阅读文档并了解一切意味着什么或我必须在其他地方深入学习它?我是Java的新手,想要开始学习库和所有东西。

4 个解决方案

#1


0  

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/

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

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

希望这可以帮助。不确定还有什么要说:)

#2


0  

  1. Study the Java language well!
  2. 学习Java语言吧!

  3. Study the Java language classes (such as Collection Framework, Execution Framework...) well!
  4. 研究Java语言类(例如Collection Framework,Execution Framework ...)吧!

  5. Study your library in depth.
  6. 深入研究您的图书馆。

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

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

#3


0  

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

我还不会深入研究游戏编程,首先了解java,当你对它感到满意时,请按照自己的方式进入光滑和lwgjl

#4


0  

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

我要说你需要学习这些课程: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.

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

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

完成后,您可以阅读我在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

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.

无论如何,这些讲座将在基础水平上教你Java,这真的是个好地方。它是免费的常春藤联盟大学教育,没有人可以争论。理解起来也很简单。

#1


0  

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/

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

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

希望这可以帮助。不确定还有什么要说:)

#2


0  

  1. Study the Java language well!
  2. 学习Java语言吧!

  3. Study the Java language classes (such as Collection Framework, Execution Framework...) well!
  4. 研究Java语言类(例如Collection Framework,Execution Framework ...)吧!

  5. Study your library in depth.
  6. 深入研究您的图书馆。

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

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

#3


0  

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

我还不会深入研究游戏编程,首先了解java,当你对它感到满意时,请按照自己的方式进入光滑和lwgjl

#4


0  

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

我要说你需要学习这些课程: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.

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

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

完成后,您可以阅读我在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

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.

无论如何,这些讲座将在基础水平上教你Java,这真的是个好地方。它是免费的常春藤联盟大学教育,没有人可以争论。理解起来也很简单。