Preface
Take a closer look. The previous blog post was in October 5 and has not been written for a long time.
When I got into my junior year, I got less and less time. I had to be busy with all kinds of things. I was also struggling with whether to continue reading or looking for a job, whether to read books in China or abroad...
Libgdx SeriesArticleIt has been more than a year since the beginning. During this period, I received encouragement and comments from many friends. In general, I feel pretty good.
After thinking for a long time, I decided to end this series of articles.
There are many reasons for this:
First, the libgdx version has changed from 0.92 to 0.97 today. Although the overall architecture has not changed much, there are still many differences in the interface details. Examples of some early articlesCodeI may not be able to run it directly, and I have no energy to check and modify it. Maybe new friends may encounter some problems.
The second is the issue of this series. When I started writing, I didn't think about anything specific, that is, I wrote an article about it. The whole series does not have a kind of overall control, it doesn't make much sense to continue writing.
The third is my personal reason. I didn't actually do much game development, and it was quite accidental that I first came into contact with libgdx. I have not studied any more in-depth game development and do not dare to write it out at will.
The next part of the article is something extremely fragmented, hoping to be useful.
What is libgdx?
I'm glad that the title of this series of articles [Use of android game development framework libgdx] is correct, although I didn't know much about it at first.
Libgdx is a game development framework. It is not a game engine.
Its main code is Java, and the higher efficiency requirements are written by C and C ++.
It is cross-platform and supports windows, Mac OS, Linux, Android (1.5 +), and GWT. Its support for iOS is based on monotouch and ikvm.
It is free, based on the Apache license 2.0 protocol.
What are the advantages of libgdx? Why should I choose it?
To be honest, there are many game frameworks and engines, and there are also a wide range of options. For example, the huge cocos2d family.
If your main language is Java, we recommend that you use libgdx.
If you are mainly involved in the android game field, we recommend you use libgdx. It can easily debug your game logic in the desktop environment, and you can easily say goodbye to that slow simulator.
If you want to develop your code more freely and you want to control your code, we recommend you use libgdx. Its encapsulation is relatively low. You can develop your own game engine based on it, instead of accepting the model and theory of other engines. Of course, you don't want to be too low-level but want some freedom. The 2D UI library and stage provide a simple solution.
If you are pursuing efficiency, we recommend you use libgdx. Maybe you have a bright eye... This is a Java product! Well, I didn't do any tests, but I recommend you read this article, which compares all aspects of mainstream game frameworks.
Is libgdx easy to use? What's better than xx?
I often see such inquiries in QQ and email. To tell the truth, I don't think this problem makes much sense. First of all, I have not studied other game frameworks and engines in depth, and dare not assert. Secondly, my personal interests and needs are different. Maybe you like libgdx's API design. Maybe you just don't get used to some design pattern. It is difficult to have a standard answer to this question, or even cause disputes.
If you want to know which development framework or engine is suitable for you, you can try again. If you don't think you have time or effort, close your eyes and choose one.
Is libgdx widely used? Which games use it?
I am clear about the meaning and concerns of the person who asked this question. However, I think the quality of a game has nothing to do with what technical means it uses for development. Game artists, design ideas, and publicity will have a great impact.
Of course, whether it is widely used depends on the speed of feedback and the difficulty of getting help to some extent. I can only tell youCommunityVery active, no problem will be dragged on for half a day (at least I encountered this problem ). I have seen a foreign website, which collects statistics on the use of third-party libraries for games in the market. libgdx ranks within 20 places. I cannot remember the specific data and website.
If you want to know which game uses libgdx, you can go to the community to see a list of games dedicated to collecting libgdx. If you want me to give you an example, I don't know if the ingress that attracts a lot of attention recently by Google can meet your psychological expectations.
Does libgdx support Chinese characters?
Sorry, it is not fully supported. Incomplete support means that native does not support it, but you can implement it in some ways. You can use herio or TTF font.
Libgdx has so many disadvantages...
If you really want to ask this question, I can only say that you can choose something else or use your strength to transform it.
But in some cases, you need to think carefully before opening your mouth. More than once I saw a similar problem:
- The image width and height used by libgdx are the integer power of 2, which is troublesome.
- Libgdx documentation is rare
- Libgdx has no scenario transition effect
- Libgdx does not have the XX Function
How should I start
A common problem in groups is that I am a newbie and how should I learn libgdx.
I personally think the best example is the official wiki. I have explained and introduced every detail from the concept to the environment. I can start with a basic understanding of it.
Then there is the official demo. You can see how to compile a complete project. But pay attention to one problem here. The demo style cannot be different, but it is also different. Pay more attention to the reference.
Where can I get help?
When I encounter a problem, I recommend that you think about it. If you want help, you can go to the Forum and ask questions. If you are not used to English, you can go to the group to ask:
Libgdx game engine (group 1) (148848483)
Libgdx game engine (group 3) (187378034)
Literally, there should be two groups, but I didn't add... If you have other groups, you are welcome to leave a message below.
In general, the QQ group is still active.
In addition to my previous articles, I recommend the mkey libgdx series tutorials. Although there is not a complete system, I provide a lot of detailed solutions. We also recommend that you renew this project.
Other ideas
I recently came into contact with markdown, and I feel that it is more convenient than latex in terms of network sharing. I also read a lot of literature on the concepts of game design and other engines, I want to organize the previous items into a slightly systematic libgdx Chinese document.
But the specific questions and structure are still being conceived...
The organization method and part of the content have been completed.
Finally, an offline version of this previous article (not packaged by me) can be downloaded if you don't want to watch it online, but I think the effect is not very good.
: Http://pan.baidu.com/share/link? Consumer id = 168280 & UK = 4127624209