AndEngine绘制滚动文本TickerText

来源:互联网 发布:有些淘宝店一万多宝贝 编辑:程序博客网 时间:2024/05/01 12:57
final Text text = new TickerText(30, 60, this.mFont, "There are also ticker texts!\n\nYou'll see the answer to life & universe in...\n\n5 4 3 2 1...\n\n42\n\nIndeed very funny!", new TickerTextOptions(HorizontalAlign.CENTER, 10), this.getVertexBufferObjectManager());text.registerEntityModifier(new SequenceEntityModifier(new ParallelEntityModifier(new AlphaModifier(10, 0.0f, 1.0f),new ScaleModifier(10, 0.5f, 1.0f)),new RotationModifier(5, 0, 360)));text.setBlendFunction(GLES20.GL_SRC_ALPHA, GLES20.GL_ONE_MINUS_SRC_ALPHA);scene.attachChild(text);

原创粉丝点击