42 videos
238 minutes
Okay, now that we have installed the Android Studio let's go to the following, the discharge generator projects. You'll find it on their official website, libgdx.badlogicgames.com. You go to the download section. And with that you download the wizard, generator projects. Why a project generator? libgdx is a multiplatform library, and has versions for many platforms:
desktop, Android, in our case, and even iOS. But it is a complex platform with a lot of bookstores. So there are two options: either we set this to hand or let a program do it for us. I do not think you want to do this by hand because if you do it often gets boring. Libgdx wizard creates a template that you put into your project data, where you want to export, and it is already generating projects
from the template that has, so it is only matter and start working. Furthermore, it libgdx used Gradle inside which is a new system which is quite used lately in the world of Android and the world of Java, because it makes it much easier to compile things, ie, when you import a project in the IDE, the IDE does not address compile the Android application. Who knows compile is Gradle, and the project will create
It has some scripts that run with Gradle, which does not have to be installed but you can download if you like. The script deals with compiling. The IDE is used all it does is call Gradle and say 'hey, compiles the desktop application, Android ...'. This is advantageous because, Returning to the previous video line, if you do not want to use Android Studio and want to use another IDE like Eclipse or NetBeans, which are supported,
if you install Gradle as a plugin you can use your favorite IDE instead of installing another. In any case and open the generator libgdx projects and It asks me questions so the best I can do is respond. Here I tell the project name and I'll call 'Jump Do not Die' and this is the name to be used for packages, for projects, for game titles question ... Under the package, which is going to the top
each Java code and containing the code. I use com.jumpdontdie. Android jumpdontdie but would simply need two words to less so I put a com front. Here I show how I want the main class of the game, we'll see how it is called. In my case I'll call MainGame. And here in Destination must specify where you want to generate. In my case I will create it on the desktop in a folder called JDD.
Finally here it is put the Android SDK. Remember when in the video above I told you that anotáseis that folder. I hope you've scored. Must be put here if it is not. It is possible that, especially in Windows, the installation wizard has already done for you. This has been ascertained by an environment variable that sometimes creates Android SDK, sometimes not. But if you have not checked,
searches the path where the Android SDK is installed. If you need help you hit Browse and go. Here libgdx version you're using. In this case 1.6.5. It leaves no use older versions so it's irrelevant. Finally in subprojects I say what subprojects will generate. In my case I'm going to uncheck both HTML and iOS, but I will not unmark desk. Because although the goal is to make a game for Android,
While the game will try not to be desktop or mobile emulators plugging. As for extensions, these are external libraries that are not part of libgdx but can be used in a project equally. The more you mark more libraries can be used, then you can be added by hand if you've forgotten some. Personally I will leave active FreeType and Box2D because we will use later.
If you want to make another, placing the mouse over it will tell you what it does. At this moment as just I am going to teach something simple I will not complicate with external libraries. Here's more, third parties, which are not official in case you want to use more. Finally, when everything is to your liking you give the Generate button. You may send you this notice. This is because the installation wizard libgdx is designed for a version more
Ancient Android SDK. Initially you not have to spend anything wrong so I give yes to everything. This will take a little while, depending on things need to download and caches, it will take more or less. All you can do here is keep waiting, just as you expected to lower the Android SDK. In my case as I had everything in the cache will not make me expect anything, but sometimes it makes wait 2 or 3 minutes, it is impressive.
And here in the instructions tells how this project would be imported into your IDE is Eclipse, NetBeans or IntelliJ. Android Studio is based on IntelliJ well that the instructions are the same. I open the Android Studio, which is the IDE you will use. When I welcome screen appears, I'll give the Import Project option in the bottom of everything. With this it will stop importing Gradle projects, which are there here,
as build.gradle and Gradle folder with your scripts. All this is what he knows how the game is compiled. Android Studio all it does is Gradle ask you build. There folder for each platform: desktop, android. All this can be done from Android Studio if it is exported. I charge, and in the case of Android Studio this makes it instantly. the main screen of Android Studio will open to start
work on the project. If you are in IDEA it will take a little longer, but good. It is true that the first time you open the project will lose more, Maven as caches and other things that are irrelevant. All you can do is wait until it disappears all the processes running, and until there is no more progress bars. Once you have it ready we can start programming.
About the Author
Biography: Analyst-Programmer in different languages. Tutor PREMIUM platforms recognized worldwide as CodigoFacilito. Editor Cristalab articles. My YouTube Channel is sponsored by the ANAYA and LaTostadora publisher. I like to explain in detail and give several examples for the avoidance of doubt.