andengine-gles-2

How to override onSetContentView while Using Ratio Resolution policy in Andengine Base game activity

一曲冷凌霜 提交于 2019-12-10 12:58:19
问题 I am developing (learning to build :) a game with andengine GLES2 . I am using Base game activity , and I override the setContent view to place my admob ad. Everything works fine except the resolution policy. Ratio Resolution policy is the one I am using along with CAMERA_WIDTH = 800; and CAMERA_HEIGHT = 480; The issue is that whenever overridden, the onsetContentView scene is not getting aligned to the center and margins are displayed only on the bottom and not on both: top and bottom. Same

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