org.andengine.entity.scene.background.Background Java Examples
The following examples show how to use
org.andengine.entity.scene.background.Background.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: LoadingScene.java From sopa with Apache License 2.0 | 6 votes |
LoadingScene() { super(); float spriteSTartY = (camera.getHeight() - camera.getWidth()) / 2; setBackground(new Background(Color.BLACK)); this.attachChild(new Sprite(0, spriteSTartY, camera.getWidth(), camera.getWidth(), ResourcesManager.getInstance().loadingScreenBackgroundRegion, vbom) { @Override protected void preDraw(GLState pGLState, Camera pCamera) { super.preDraw(pGLState, pCamera); pGLState.enableDither(); } }); }
Example #2
Source File: GameScene.java From sopa with Apache License 2.0 | 4 votes |
private void addBackground() { background = new Background(Color.BLACK); setBackground(background); }
Example #3
Source File: MainMenuScene.java From sopa with Apache License 2.0 | 2 votes |
private void createBackground() { setBackground(new Background(Color.BLACK)); }