问题标签 [andengine]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
android - 如何使用andEngine移动精灵的身体?
我想将精灵的身体与线条的某些部分一起移动,我只能移动精灵但身体没有移动。
android - 使用 AndEngine 和 Box2D 制作英雄跳跃
我是新手和引擎。目前我想使用 AndEngine 和 Box2D 让我的游戏英雄跳跃。我已经尝试了很多方法来做到这一点。但未能成功。
这是我的代码,用于使角色在触摸屏幕上显示的左右箭头时左右行走。现在我想让它跳上触摸向上箭头。这是我的代码...
android - 在设备中加载大背景图像的问题(Andengine)
加载设备时仅显示白色图像,加载模拟器时图像损坏
示例代码:
// this.mCamera = new Camera(0, 0, 480,320);
ScreenOrientation.LANDSCAPE, new FillResolutionPolicy(), this.mCamera));
this.mCamera = new Camera(0, 0, CAMERA_WIDTH, CAMERA_HEIGHT);
ScreenOrientation.LANDSCAPE, new FillResolutionPolicy(), this.mCamera));
//----
this.mTexture = new Texture(2048, 512, TextureOptions.BILINEAR_PREMULTIPLYALPHA); this.mbgTextureRegion = TextureRegionFactory.createFromAsset(this.mTexture, this, "gfx/bg.png", 0, 0);
什么是最大纹理大小将在 andengine 中使用。我用的是 2048,它的问题,请帮忙?
android - 纹理的最大尺寸是多少(Andengine)
应该在andengine中使用的纹理的最大尺寸是多少。我用了
加载设备(HTC G1 T-Mobile)时显示空白屏幕。减小图像尺寸后并用此替换上述行时
它的运行。有什么问题 ?
android - 如何在 Maven 中使用 andengine?
我使用下载了源
而且我想知道下一步是使用andengine 和maven。
android - 实施加速度计(Andengine)时的问题
我正在尝试Accelerometer
在我的游戏中使用Andengine
并且我还添加了andenginephysicsbox2dextension.jar
当我实现这一行时,我得到了错误并且无法运行。
如何修复此错误?
Logcat 错误:
android - 使用加速度计移动球(简单示例)
在哪里可以找到使用加速度计(Andengine)移动球的简单示例。我使用 onKeyDown 事件来做到这一点。
诠释 x=20;y=10;
//ballSprite.setPostion(x,y); 例如:当按下左键时
x=x-5;
按下向上键时
y=y+5;
同样的事情,如何使用加速度计..任何样品?
android - 具有试用效果的Andengine
目前我正在使用andengine开发游戏。在我的游戏中,我必须像水果忍者一样带来跟随手指的试用效果。我已经尝试使用 BaseGameActivity 和 LayoutGameActivity 使用 xml 文件进行渲染。
但是,在将 opengl 渲染与 andengine RendererSurfaceView 结合使用时,它显示了一些延迟,并且 RendererSurfaceView 中的精灵不听 onAreaTouched()。
我很困惑。你能帮我以什么方式在我的游戏中带来像水果忍者这样的试用效果吗?
android - 如何像keyReapted(Andengine)一样实现触摸监听器连续
我在类中实现 IOnSceneTouchListener 和覆盖方法,我在场景中实现
并且我能够为每次触摸获得 x 任何 y 位置。我如何获得 x 和 y 位置以进行连续触摸
android - 和引擎施加力
有谁知道为什么 applyforce 只适用于我的一个精灵?此外,当我按下其他精灵时,它也会对单个精灵施加力。nextTile 方法工作正常。
enter code here
包 com.martynnorman.jude;
/** * @author Nicolas Gramlich * @since 11:54:51 - 03.04.2010 */ 公共类 MainActivity 扩展 BaseGameActivity 实现 IOnAreaTouchListener { // ================= ========================================== // 常量 // ==== ==================================================== =====
私有静态最终 FixtureDef FIXTURE_DEF = PhysicsFactory.createFixtureDef(1, 0.5f, 0.5f);
}