andengine

Add AndEngine Library

纵饮孤独 提交于 2019-12-11 12:16:11
问题 I got AndEngine from github and did as follows: And i got AndEnginePhysicsBox2DExtension and did: After that i added the libraries to my App I then imported But then when i press OK and open the properties of my app i get this How can i fix this problem ? 回答1: you shouldn't import the andengine project. just use andengine jar-file as library and it will work well. you can find the jar-files in the bin-folder of the project. and when i'm not wrong, then this error comes, when you don't copy

Andengine compilation error using the cloned Git repo in AIDE

南笙酒味 提交于 2019-12-11 11:51:45
问题 I am using AIDE to code an Android game and I want to use Andengine to code my game. I heard that it is recommended to clone the git repository since the maker doesn't compile Java Archive(JAR) files anymore. However, when I clone the git repo and try to compile a simple Andengine project I get errors saying that there is a "compilation error in x86". This means that my only option is to use the older, outdated JAR files. Does anyone know how to solve this problem? 回答1: Copied shamelessly

Android register touch events on visible portion of image?

蹲街弑〆低调 提交于 2019-12-11 11:49:33
问题 I've currently been thinking about how I could register only touch events on the visible (non-transparent) parts of a .PNG image. -I've been testing around with AndEngine and it seems they have multiple options: I've tried any I could find to no avail. -I could very possibly create my own method of checking a given touched area's transparency I suppose, but not sure how much work/overhead that might create with 15-20 objects on screen being able to be touched.. Any help is much appreciated!

AndEngine andengine.jar file

女生的网名这么多〃 提交于 2019-12-11 09:53:32
问题 Hi im using Android Studio ver. 0.8.6 now i want to use andEngine, i know that i should download andengine.jar file and copy it to libs folder in my project, everything is all right, but i can find the andengine.jar GLES2 there are only files with 1st version, and the newest examples didn't work with it, can someone pls give me link to andengine.jar GLES2? or maybe im doing something wrong? I'm taking examples from official site and there are a lot of errors one of them: extends BaseExample

Swipe Scenes in AndEngine

只愿长相守 提交于 2019-12-11 08:38:59
问题 I'm making an Android Game using AndEngine. I'm making 5 levels in this puzzle game. Now I want to implement level selection part.Where I'm planning to make 5 scenes and user can swipe them. But I don't know how to implement swipe with its effect in Andengine. Looking for some help. 回答1: Use the SurfaceGestureDetector in Andengine: https://code.google.com/p/andengine/source/browse/src/org/anddev/andengine/input/touch/detector/SurfaceGestureDetector.java?r

ParallaxLayer with multiple images/entities scrolling in Sequential manner

人盡茶涼 提交于 2019-12-11 08:25:34
问题 Hi I am new to andengine and trying to code a basic sidescroller game using the ParallaxLayer class witch I got from the following example :http://www.andengine.org/forums/features/parallaxlayer-t5390.html I followed the example and it works. My question is how would I display for example 3 images(Sun_Stage.png, Moon_Stage.png Dark_stage.png) in sequential manner as a scrollable background... First scroll until Sun_stage.png is finnished and then scroll the next stage witch is Moon_Stage.png?

How to set PathModifier's coordinates randomly in start of LoopEntityModifier?

ぃ、小莉子 提交于 2019-12-11 06:48:55
问题 I created a live wallpaper service using AndEngine library. On screen there is a bird Sprite that flying repeatedly from the left to right. I'm using LoopEntityModifier and PathModifier for the solution. The bird is coded to start randomly on Y-position everytime it shows up from the left screen. The code is like this: public class MyLiveWallpaperService extends BaseLiveWallpaperService { private AnimatedSprite birdSprite; ... public Scene onLoadScene() { ... float[] coordY =

Chase player with camera in AndEngine and limit world's bounds

余生颓废 提交于 2019-12-11 06:06:16
问题 Using AndEngine for Android, I would like to have my scene look like this: The red box is the world which must be limited to a given size, say 2000px*450px . The blue box is the Camera , which is limited as well (as usual), for example to 750px*450px . For the whole scene, I have a background image that is exactly 450px high. So my Camera can be scaled to whatever size is appropriate, but the background must exactly fit to the height. The width of the Camera may be variable. The player

How to compile the AndEngine sources?

随声附和 提交于 2019-12-11 05:56:42
问题 In this post: http://www.andengine.org/forums/post17375.html#p17375 Nicolas Gramlich suggest try to compile the AndEngine sources. Where I can get AndEngine GLES1 sources or how i can do this another way? 回答1: Because it is very difficult to google "andengine sources"... http://code.google.com/p/andengine/source/checkout https://github.com/nicolasgramlich/AndEngine 回答2: Look how use andengine source 来源: https://stackoverflow.com/questions/9479139/how-to-compile-the-andengine-sources

AndEngine:The livewallpaper app cannot open setting page

 ̄綄美尐妖づ 提交于 2019-12-11 05:42:12
问题 I write a live wallpaper with AndEngine . When I choose my wallpaper in the Wallpaper Selector it goes OK, except I click the " Settings " button(This action will crash the app). Can anyone help me? THanks in advance! PS: [Error Log] 08-30 10:46:54.376: E/Surface(4246): surface (identity=1406) is invalid, err=-19 (No such device) 来源: https://stackoverflow.com/questions/12188902/andenginethe-livewallpaper-app-cannot-open-setting-page