English 中文(简体)
在 Eclipse 安装和引擎 [已关闭]
原标题:Installing AndEngine in Eclipse [closed]

要求我们 建议或找到工具、图书馆或最喜爱的场外资源 是堆叠溢流的离专题,因为它们往往吸引有见解的答案和垃圾邮件。 相反, 和迄今为解决问题所做的工作。

Closed 10 years ago.

我想安装And Engine... 我见过一些视频 显示您如何安装这些视频。但这些视频是去年完成的, 从那以后,安装的方法就改变了。 以免他们在这些视频中这样做的方式...

最佳回答

Keep in mind that currently there are 2 versions of AndEngine GLES1 and GLES2, most videos and tutorials are for GLES1 as that GLES2 was recently released also AndEngine was on google Code and now moved to github , so an old tutorial would not work I wrote a tutorial about setting up GLES2 and getting it to work , check it out

https://jimmaru.wordpress.com/2012/04/23/secrep-up-andengine-gles-2-0/

问题回答

目前的最佳做法是建立图书馆工程。 Nicholas Gramlich, Andingine的占卜人, 发布如何下载最新建筑工程的指示, 并添加到这个图书馆工程中:

< a href=>http://www.andengine.org/forums/gles2/use-andengine-as-a-android-library-project-as-a-jar-t6142.html>http://www.andengine.org/forums/gles2/use-andengine-as-a-android-library-project-as-a-jar-t6142.html

您确实 想要获得一个罐头文件, 并使用它。 因为已不再有. jar for andengine 。 如果您正在使用罐头文件, 您正在使用旧版本。 即使您正在使用 GLES1, 您也应该通过一个库工程来更新最新的代码, 而不是一个罐子文件 。

我看这还是没有很好地解释 所以我自己做了,这是我的方式:

  1. Create your game project in Eclipse (do it as usual)
  2. Download and unpack andengine from github to and_location (not a jar file)
  3. In eclipse import whole and_location folder as an "Existing Android Code.." to do so right click on white space in project view and choose "Import" from context menu. As a root directory choose and_location when u do this it should (by default) mark checkbox next to "AndEngine" project. Click Finish.
  4. Now you will see two projects in your workspace:
    • YourGame
    • AndEngine
  5. Right click on YourGame project and choose "Build path -> Configure build path.."
  6. Choose "Projects" tab
  7. Click "Add" button on the right. Choose AndEngine, Click OK -> OK and Voila, you are done and you can use AndEngine classes in your project

basically you just want to add jar file in ur project .so first download jar file from http://www.2shared.com/file/9K77Yazm/andengine.html and now you can include this jar file in your project like this rightclick on ur project->properties->javabuildpath->add external jar->give the location of download and jar and add it.





相关问题
In Eclipse, why doesn t "Show In" appear for non-Java files?

If I have a *java file open, I can right click on the source, scroll down to "Show In (Alt-Shift-W)", and select Navigator. If I have an *xml, *jsp, or pretty much anything besides a Java source ...

Eclipse: Hover broken in debug perspective

Since upgrading Eclipse (Galileo build 20090920-1017), hover in debug no longer displays a variable s value. Instead, hover behaves as if I were in normal Java perspective: alt text http://...

Eclipse smart quotes - like in Textmate

Happy Friday — Does anyone know if eclipse has the notion of smart quotes like Textmate. The way it works is to select some words and quote them by simply hitting the " key? I m a newbie here so be ...

Indentation guide for the eclipse editor

Is there a setting or plugin for eclipse that can show indentation guides in the editor? Something like the Codekana plugin for visual studio (not so fancy is also OK). Important that it works with ...

Adding jar from Eclipse plugin runtime tab

I want to add .jar files for plugin from the Runtime tab of manifest file. When I use the Add... button, I can see only sub-directories of the plugin project. So if I want to add same .jar file to ...

How to copy multiple projects into single folder in eclipse

I have two projects, Project1 and Project2. Now i want to copy this projects into eclipse workspace but i want these projects to be in a single folder like below. Eclipse Workspace -> Project -> ...

Java: Finding out what is using all the memory

I have a java application that runs out of memory, but I have no idea which code is allocating the memory. Is there an application with which I can check this? I use Eclipse.

热门标签