nicolasgramlich / andengineexamples Goto Github PK
View Code? Open in Web Editor NEWAndEngine - Examples
Home Page: http://www.andengine.org
AndEngine - Examples
Home Page: http://www.andengine.org
I have troble making game with andengine. And the game root-activity is LayoutGameActivity.
in MainActivity.java
@OverRide
public void onClick(ButtonSprite pButtonSprite, float pTouchAreaLocalX,
float pTouchAreaLocalY) {
// TODO Auto-generated method stub
if(pButtonSprite.equals(btn))
{
this.runOnUiThread(new Runnable(){
@OverRide
public void run() {
// TODO Auto-generated method stub
EditText edit_text=(EditText)findViewById(R.id.edit_text);
edit_text.setVisibility(View.VISIBLE);
}
});
}
}
<org.andengine.opengl.view.RenderSurfaceView
android:id="@+id/xmllayoutexample_rendersurfaceview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"/>
and as you know, I added the 'EditText' in main.xml .And in game, I want to EditText to visible.
But the edittext is not visible.Though the virtual-keyboard pop-up, the edittext is not visible.
And I attach the video of this problem.
01-29 15:05:12.501: E/AndEngine(6322): AndEngine
01-29 15:05:12.501: E/AndEngine(6322): org.andengine.util.system.SystemUtils$SystemUtilsException: java.lang.NumberFormatException: unable to parse '1000000
01-29 15:05:12.501: E/AndEngine(6322): ' as integer
01-29 15:05:12.501: E/AndEngine(6322): at org.andengine.util.system.SystemUtils.readSystemFileAsInt(SystemUtils.java:254)
01-29 15:05:12.501: E/AndEngine(6322): at org.andengine.util.system.SystemUtils.getCPUFrequencyCurrent(SystemUtils.java:177)
01-29 15:05:12.501: E/AndEngine(6322): at org.andengine.examples.benchmark.BaseBenchmark$6.call(BaseBenchmark.java:208)
01-29 15:05:12.501: E/AndEngine(6322): at org.andengine.examples.benchmark.BaseBenchmark$6.call(BaseBenchmark.java:1)
01-29 15:05:12.501: E/AndEngine(6322): at org.andengine.util.ActivityUtils$1.doInBackground(ActivityUtils.java:122)
01-29 15:05:12.501: E/AndEngine(6322): at org.andengine.util.ActivityUtils$1.doInBackground(ActivityUtils.java:1)
01-29 15:05:12.501: E/AndEngine(6322): at android.os.AsyncTask$2.call(AsyncTask.java:185)
01-29 15:05:12.501: E/AndEngine(6322): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
01-29 15:05:12.501: E/AndEngine(6322): at java.util.concurrent.FutureTask.run(FutureTask.java:137)
01-29 15:05:12.501: E/AndEngine(6322): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1068)
01-29 15:05:12.501: E/AndEngine(6322): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:561)
01-29 15:05:12.501: E/AndEngine(6322): at java.lang.Thread.run(Thread.java:1096)
01-29 15:05:12.501: E/AndEngine(6322): Caused by: java.lang.NumberFormatException: unable to parse '1000000
01-29 15:05:12.501: E/AndEngine(6322): ' as integer
01-29 15:05:12.501: E/AndEngine(6322): at java.lang.Integer.parse(Integer.java:433)
01-29 15:05:12.501: E/AndEngine(6322): at java.lang.Integer.parseInt(Integer.java:422)
01-29 15:05:12.501: E/AndEngine(6322): at java.lang.Integer.parseInt(Integer.java:382)
01-29 15:05:12.501: E/AndEngine(6322): at org.andengine.util.system.SystemUtils.readSystemFileAsInt(SystemUtils.java:250)
01-29 15:05:12.501: E/AndEngine(6322): ... 11 more
In HullAlogorithmExample.java, import org.andengine.entity.primitive.vbo.DrawMode should be import org.andengine.entity.primitive.DrawMode; i think....
org.andengine.examples.HullAlgorithmExample.java
line 11 - imports
from
import org.andengine.entity.primitive.vbo.DrawMode;
to
import org.andengine.entity.primitive.DrawMode;
org.andengine.examples.TextBreakExample.java
line 106 - onCreateScene()
from
this.mText = new Text(50, 40, this.mFont, "", 1000, new TextOptions(AutoWrap.LETTERS, AUTOWRAP_WIDTH, Text.LEADING_DEFAULT, HorizontalAlign.CENTER), vertexBufferObjectManager);
to
this.mText = new Text(50, 40, this.mFont, "", 1000, new TextOptions(AutoWrap.LETTERS, AUTOWRAP_WIDTH, HorizontalAlign.CENTER, Text.LEADING_DEFAULT), vertexBufferObjectManager);
org.andengine.examples.BoundCameraExample.java
line 220 - addFace()
from
final AnimatedSprite face = new AnimatedSprite(pX, pY, this.mBoxFaceTextureRegion, this.getVertexBufferObjectManager()).animate(100);
to
final AnimatedSprite face = new AnimatedSprite(pX, pY, this.mBoxFaceTextureRegion, this.getVertexBufferObjectManager());
face.animate(100);
org.andengine.examples.SplitScreenExample.java
line 179 - addFace()
from
final AnimatedSprite face = new AnimatedSprite(pX, pY, this.mBoxFaceTextureRegion, this.getVertexBufferObjectManager()).animate(100);
to
final AnimatedSprite face = new AnimatedSprite(pX, pY, this.mBoxFaceTextureRegion, this.getVertexBufferObjectManager());
face.animate(100);
Working nice at start. When trying wake up the device, shaders just stop working - black screen ...
test device: Samsung Galaxy Tab2 with Android 4.2.2
I found here here how to create perspective in GLES1, but I could not adapt it for GLES2.
What happened to ExpireParticleModifier.java and why ExpireParticleInitializer.java is inside "org.andengine.entity.particle.modifier" instead of "org.andengine.entity.particle.initializer" like the others ParticleInitializers
On Line 108 of SpriteRemoveExample ( https://github.com/nicolasgramlich/AndEngineExamples/blob/GLES2/src/org/andengine/examples/SpriteRemoveExample.java#L108 ), shouldn't that be engine.unlock()?
Error on line 69 of SpriteExample, "The constructor BitmapTexture(TextureManager) is undefined". Seems to be related to changes of the constructors of AndEngine's BitmapTexture in the beginning of march.
all classes that uses the andendinge has these errors.
I found AugmentedRealityExample is commented. Is it available or not?
Line 11 of the file is:
import org.andengine.entity.primitive.vbo.DrawMode;
Instead, it should be:
import org.andengine.entity.primitive.DrawMode;
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.