Juegos Para Android Version 4.1.2 -

@Override public void render(float delta) Gdx.gl.glClearColor(0, 0, 0, 1); Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT); // Handle input if (Gdx.input.isTouched()) playerPosition.set(Gdx.input.getX(), Gdx.input.getY()); // Draw batch.begin(); batch.draw(playerTexture, playerPosition.x, playerPosition.y); batch.end();

public void restoreState(String state) String[] parts = state.split(","); score = Integer.parseInt(parts[0]); playerX = Float.parseFloat(parts[1]); playerY = Float.parseFloat(parts[2]); juegos para android version 4.1.2

I understand you're looking to create a feature for Android games compatible with version 4.1.2 (API level 16, Jelly Bean). That's an older version, but still possible with some limitations. @Override public void render(float delta) Gdx

// Feature: High scores public void saveHighScore(String gameId, int score) int currentHigh = prefs.getInt(gameId + "_highscore", 0); if (score > currentHigh) prefs.edit().putInt(gameId + "_highscore", score).apply(); // Draw batch.begin()

Les derniers contenus publiés

Le contenu chaud, tout juste sorti de notre équipe

Les articles les plus lus

Ceux qu'il ne faut surtout pas rater