New pit: Zombie Bird How to use LIBGDX Android development hand-Tour NOTE-1

Source: Internet
Author: User
Tags libgdx

Original address: http://www.kilobolt.com/zombie-bird-tutorial-flappy-bird-remake.html

This is how you develop a zombie bird. For me, I don't want to develop any zombie birds. I'm just going to look into libgdx. Originally with Andengine, but this goods from the last year is not updated.

LIBGDX is relatively complex because of cross-platform because of gradle. So, I'll just look at it and share the experience with you.

First of all, thanks to the great libgdx ... You can run your game across platforms.

Your game would run on IOS (IPhone and IPad), HTML (browsers), Android, Windows and Mac. You are only having to write your code once in Java, thanks to LibGDX.

If you're a novice in Java. Go here, http://www.kilobolt.com/unit-1-beginning-java.html.

Zombie Bird All program code Https://github.com/sivvig/ZombieBird

Foreigners open source is Diao ... Praise the spirit of open source!

All right, tell me the point.

If you don't have the Java installed on your machine, and you does not have the Eclipse up and running with Android development Too LS, click here to install those.

First of all, to install ADT.

LibGDX offers Cross-platform development that lets you write code once and run on multiple platforms. This was possible because in the LIGGDX architecture and you had a core Java project in which you write all of your High-level source code (typically using some kind of interface). Whatever code you write in the core Java project would interface with platform-specific code via a variety of platform- Specific Java projects (this was the core functionality offered by LibGDX).

This paragraph explains why LIBGDX is so awesome. Once written, multi-platform run, this estimate is due to its architecture, a core Java Project, and then you write some interfaces. Then LIBGDX will help you with the platform adaptation.

1. Click here to Download the Setup App.

Click to download the installer.

Then, I simply double-click on the run directly.

The corresponding setting.

6. Enter The information shown below (and in the image above): the Destination Ish.

Name: Zombiebird//Software name
Package : com.kilobolt.zombiebird//bag Name
Game class: Zbgame//Game class
Destination: Your choice.  Remember which folder you choose. Target path
Android SDK: The location of your Android SDK installation. If you were using the ADT Bundle (android Developer Tools: Eclipse + android SDK, etc) This is located inside SDK inside the adt-bundle folder.

SDK Location

7. Select Advanced

Select Eclipse

The author chooses to ignore Gradle this thing. Because it's too complicated, if you have a background that compiles ant or Maven. can go and see. We'll discuss this later.

8. Then point generate. I also hint that my SDK version is higher than recommended, I choose to continue directly.

9. Start the Download: You can go to the bathroom.

10 ... Wait Time exceeded expectations ... Recommended speed of the general words can go first to do other, see a movie What.

11. Failed. Hint Java_home not found. And then the eighth article: My hand is a cheap choice, Yes, choose No ...

12.OK.

BUILD Successful

Total time:14.758 secs
done!
To import in Eclipse:file, import, Gradle, Gradle Project
To import to Intellij Idea:file, import and Build.gradle
To import to Netbeans:file-Open Project ...

13. Import the file to eclipse. As I said before. The goods are used gradle. The author did not consider this, it was imported directly. You can follow what he says.

Well, I'm going to try and put on a gradle.

Http://dist.springsource.com/release/TOOLS/gradle in Eclipse

    1. In Eclipse Open help >> Install New software
    2. Paste a Gradle update site link into the ' Work with ' text box.
    3. Click the Add button at the top of the screen.
    4. Ensure that the option ' Group Items by Category ' is enabled.
    5. Select the top-level node ' extensions/gradle integration '.
    6. Click "Next". This is a while.
    7. Review the list of software that'll be installed. Click "Next" again.
    8. Review and accept licence agreements and click "Finish".

Installation

Uh.... A lot of questions. Come here first. I'll study the study again.

New pit: Zombie Bird How to use LIBGDX Android development hand-Tour NOTE-1

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.