andengine

Drawing a circle using Andengine

吃可爱长大的小学妹 提交于 2019-12-04 04:20:03
问题 I am searching a way to draw a circle using Andengine. As I can see, I can only draw lines, rectangles, and place sprites, but I cannot find a way to draw circles. How can I do this? 回答1: Indeed, you can't directly draw a circle. Alternatives are: Rendering a quad with a circle texture (see this link, for example) Rendering a circle that's actually a circle of connected triangles. You'd have to procedurally generate the geometry to approximate a circle. For a solid circle, that's not so hard.

Switching from AndEngine to libgdx - what to know? [closed]

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-04 04:09:57
Closed . This question needs to be more focused. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it focuses on one problem only by editing this post . Closed 6 years ago . I've been testing with AndEngine for months, but still haven't produced any game prototypes. There are few reasons why I want to switch to libgdx: - AndEngine is using libgdx's INI wrapper for Box2d, but updates reach Andengine slowly - I'm primarily targeting Android, but having option for easy porting to other platforms could come handy - Documentation! AndEngine

Installing AndEngine in Eclipse [closed]

天大地大妈咪最大 提交于 2019-12-04 02:53:44
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I'm wanting to install AndEngine... I've came across Some videos that show you how to install it. But these videos were done last year, and since then, the method of installing it has changed. At lest the way they were doing it in these videos... Dose any one know the new extensions or some new tutorials I can

How to throw/fling the ball by swiping on it using AndEngine?

旧巷老猫 提交于 2019-12-04 02:16:07
问题 I'm having a ball sprite on screen,when i touch and swipe on that sprite,It must move in particular direction of swipe. I have added a physics to that ball. I wanted to do some thing like paper toss Can any one help me out. Thanks in advance. 回答1: You need to override the onAreaTouched method of Sprite as shown below. You can get the information on the touch event from your pSceneTouchEvent, pTouchAreasLocalX, and pTouchAreaLocalY variables and use them to determine which way to move the ball

andengine compileReleaseNdk error

送分小仙女□ 提交于 2019-12-03 15:18:59
I want to use andengine in my android studio project but I have ndk error while building. Error:Execution failed for task ':andEngine:compileReleaseNdk'. > com.android.ide.common.internal.LoggedErrorException: Failed to run command: D:\Android\android-ndk-r9d\ndk-build.cmd NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=D:\Android\workspace\simpleclock\simple_clock_as\andEngine\build\intermediates\ndk\release\Android.mk APP_PLATFORM=android-19 NDK_OUT=D:\Android\workspace\simpleclock\simple_clock_as\andEngine\build\intermediates\ndk\release\obj NDK_LIBS_OUT=D:\Android\workspace\simpleclock\simple_clock

eglSwapBuffers failed: EGL_BAD_ALLOC AndEngine Android

…衆ロ難τιáo~ 提交于 2019-12-03 08:07:51
I m developing a game in And engine which throws the exception. Actually I don't know the point where exceptions occurs. It is reported in market many many time. java.lang.RuntimeException: eglSwapBuffers failed: EGL_BAD_ALLOC at android.opengl.GLSurfaceView$EglHelper.throwEglException(GLSurfaceView.java:1080) at android.opengl.GLSurfaceView$EglHelper.swap(GLSurfaceView.java:1038) at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1364) at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1118) is there any solution for this one?? This error can occur when you

andEngine Android-Studio linker Error during Build

 ̄綄美尐妖づ 提交于 2019-12-03 07:58:34
I took the source of AndEngine from their git repo, downloaded a fresh AndroidStudio, sdk and ndk,imported it, and tried to creat a simple new empty GameActivity extends BaseGameActivity. But I could not start it, cause I get the following errors: /home/uhu/android-ndk-r9d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /home/uhu/AndroidStudioProjects/aaa/andEngine/build/intermediates/ndk/release/obj/local/armeabi-v7a/objs/andengine_shared//home/uhu/AndroidStudioProjects/aaa/andEngine/src/main/jni/src

Optimization of AndEngine game

让人想犯罪 __ 提交于 2019-12-03 05:59:26
问题 I am using java + AndEngine in my game. During the game i have some freezes, i looked for the information and found some steps how to optimize game performance: Avoid GC (garbage collector) to be called in main action in the game: a)don't create objects while gaming; b)don't create unnecessary objects; Optimize code that repeats very often I followed these steps, but never the less i have some freezes during the gameplay. Now i am creating and loading all of the textures before the game

Optimization of AndEngine game

吃可爱长大的小学妹 提交于 2019-12-02 19:38:49
I am using java + AndEngine in my game. During the game i have some freezes, i looked for the information and found some steps how to optimize game performance: Avoid GC (garbage collector) to be called in main action in the game: a)don't create objects while gaming; b)don't create unnecessary objects; Optimize code that repeats very often I followed these steps, but never the less i have some freezes during the gameplay. Now i am creating and loading all of the textures before the game started and don't unload them, is it a bad idea ? How can i optimize the game proccess ? Maybe i have to

Unable to display game screen while admob integrated with AndEngine + google play service

断了今生、忘了曾经 提交于 2019-12-02 15:59:27
问题 I am using andengine for my game development with google play services, my game works fine. But once I added admob with "onSetContentView" callback called, my game screen goes black and only ads are visible. Here is my callback onSetContentView function: @override protected void onSetContentView() { this.mRenderSurfaceView = new RenderSurfaceView(this); this.mRenderSurfaceView.setRenderer(mEngine, this); final android.widget.FrameLayout.LayoutParams surfaceViewLayoutParams = new FrameLayout