andengine

Andengine (gles2) - ButtonSprite don't react on click

与世无争的帅哥 提交于 2019-12-08 05:22:46
问题 I have code like this: mButton = new ButtonSprite(400 , 400, myTiledTextureRegion.getTextureRegion(0), myTiledTextureRegion.getTextureRegion(1), activity.getVertexBufferObjectManager(), new OnClickListener() { @Override public void onClick(ButtonSprite pButtonSprite, float pTouchAreaLocalX, float pTouchAreaLocalY) { Toast.makeText(MenuScene.this.activity, "Clicked", Toast.LENGTH_LONG).show(); } }); this.attachChild(mButton); My problem is that when I Click on my button i don' t get toast

Looking for a method for flipping bidi (Hebrew) text so it would be displayed correctly in AndEngine

我怕爱的太早我们不能终老 提交于 2019-12-08 01:20:51
问题 I've been lurking around the web for days trying to look for a code implementation (Preferably Java) for flipping Bidi text so it would be displayed correctly inside platforms that do not support Bidi text text out of the box. (Such as AndEngine). The optimal solution would be a method that I would provide it with Hebrew text, and it would return its content flipped. I could do this by myself but it's getting complicated once it gets to mixed strings of both English and Hebrew text, as well

openGL drawing distorted sprites (images) in psuedo-3d perspective

╄→尐↘猪︶ㄣ 提交于 2019-12-08 00:21:40
问题 Alright so this is going to be a doozy to explain. I'm making a very basic "pseudo-3d" racing game for Android using AndEngine (and in turn, openGL - I think). I don't believe using AndEngine really has anything to do with this problem though, because I'm directly accessing openGL functions to accomplish my drawing. Anyways, I copy-pasta'd some code that allowed the normally 2d AndEngine to have a 3d perspective (tutorial for such can be found here. This works pretty well, and I also don't

loading SVG in AndEngine

孤人 提交于 2019-12-07 22:46:49
问题 Is anyone familiar with AndEngine and loading svg's? Right now i am trying to load a background for a scene and it doesnt appear at all for some reason.. Here is th code i am using to load the SVG and attach it to the scene. //In my onLoadResources method this.mBuildableTexture = new BuildableBitmapTexture(1024, 1024, TextureOptions.BILINEAR_PREMULTIPLYALPHA); SVGTextureRegionFactory.setAssetBasePath("gfx/"); this.mSVGTestTextureRegions = SVGTextureRegionFactory.createFromAsset(this

How to pop up 'new update available' dialogue, when user starts my app(android)

蹲街弑〆低调 提交于 2019-12-07 15:41:25
I made a game using AndEngine and I have made different updates three times and uploaded in google play store. I see that Google does provide a update notifications, but most of the people don't read the 'available updates' notification Google provides. So When the users start my app, I want it to pop up a dialogue such as "A new version is available. Do you want to update?" and upon clicking the 'yes' button, it will link to the google market of my app. Is there any way I could implement such device? Vinay Wadhwa Follow this algorithm launch app check version from manifest check version from

How to add trail path for moving sprite in andengine

二次信任 提交于 2019-12-07 11:35:17
问题 I'm working on a game copter (http://i1-games.softpedia-static.com/screenshots/Copter_1.jpg). When you touch the screen, you go upwards otherwise you'll go downwards. So you are changing the position of the sprite. Now I want a trailpath for my sprite, does anybody who has an idea how to do it? Here is an example of how it should look like: Tips for on the center line are good enough. If you have an idea how to do the gradient, let me know! 回答1: You need Particles. You can look HERE or better

Android 2D游戏引擎AndEngine配置环境

左心房为你撑大大i 提交于 2019-12-07 11:15:39
Android 2D游戏引擎AndEngine配置环境 1 . 2 配置环境 在任何编程中,都需要一些软件或者硬件的支持。否则,没有硬件软件是不可能存在的,而想要编写对应语言的的程序,这需要对应语言库和编译器等的支持。所以在开 AndEngine 的游戏也需要这些东西,而我们需要的环境都有那些呢?本节内容就将解密 AndEngine 环境的配置本文选自 Android 2D游戏引擎AndEngine快速入门教程 。 1 . 2 . 1 环境要求 编写 AndEngine 需要一定的编程环境才可以完成编写。而为了调试,需要用到相应的设备才可以正常调试。这一小节就来讲一下需要编程环境。本书中需要的软件和硬件设备如下 本文选自 Android 2D游戏引擎AndEngine快速入门教程 。 q 一台计算机:计算机中安装的系统必须是 Windows XP 、 Windows Vista 、 Windows 7 、 Windows 8 、 Linux (例如 Ubuntu )和 Mac OS 10.5.8 中的一种,或者这些类型系统中的最新版。 q Java SDK :需要的 JDK 必须为 JDK 6 以上的版本。 q Eclipse 编辑工具。 q AndEngine 和 AndEnginePhysicsBox2DExtension 项目文件。 q 包含 ADT 的 Android

Google Play Game Services - Custom Notification / Welcome Back

▼魔方 西西 提交于 2019-12-07 05:54:09
问题 I have been looking all over the internet, but can't find my answer. Is there a way to show the user that they are signed in to the GPGS. The first time you sign in you'll get a notification, what will say "Welcome < name >" But when you open the app the next time nothing is shown. Is there a way to show a Welcome Back notification? For iOS it is possible: noted just above Step 9: https://developers.google.com/games/services/ios/quickstart?hl=en#step_9_add_a_sign-out_button Any ideas? 回答1: If

AndEngine with Google Play game services

北慕城南 提交于 2019-12-07 03:54:54
问题 Im using AndEngine-GLES2-AnchorCenter and I want implement Google Play game services. I copied BaseGameActivity and GameHelper classes from BaseGameUtils (part of Google Play game services - Android Samples) to my project in same util package. Because AndEngine already use BaseGameActivity , I renamed it to GBaseGameActivity and changed extended class to BaseGameActivity (AndEngine class), so from this: public abstract class BaseGameActivity extends FragmentActivity to: public abstract class

couldn't find “libandenginephysicsbox2dextension.so”

十年热恋 提交于 2019-12-07 03:27:24
I am making simple android app using andengine and box2d extention. Unfortunately, I got this message: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/es.esy.m3na71jnu5cg5e2.gs14049_bsj_mid-2/base.apk"],nativeLibraryDirectories= [/data/app/es.esy.m3na71jnu5cg5e2.gs14049_bsj_mid-2/lib/arm64, /vendor/lib64, /system/lib64]]] couldn't find "libandenginephysicsbox2dextension.so" at java.lang.Runtime.loadLibrary(Runtime.java:367) at java.lang.System.loadLibrary(System.java:1076) at org.andengine.extension.physics.box2d.PhysicsWorld.<clinit>(PhysicsWorld