本文整理了Java中com.badlogic.gdx.scenes.scene2d.Actor.<init>()
方法的一些代码示例,展示了Actor.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Actor.<init>()
方法的具体详情如下:
包路径:com.badlogic.gdx.scenes.scene2d.Actor
类名称:Actor
方法名:<init>
暂无
代码示例来源:origin: stackoverflow.com
//Create an actor and add it to the Stage:
Actor myActor = new Actor();
stage.addActor(myActor);
//Then remove the actor:
myActor.remove();
代码示例来源:origin: stackoverflow.com
private Actor actionManager = new Actor(); //use a Stage instead if using one anyway
private final Color fadeColor = new Color ();
private static final Color FADED = new Color(1,1,1,0);
private void fadeOut (float duration){
ColorAction colorAction = Actions.color(FADED, duration, Interpolation.sine);
colorAction.setColor(fadeColor);
actionManager.addAction(colorAction);
}
private void fadeIn (float duration){
ColorAction colorAction = Actions.color(Color.WHITE, duration, Interpolation.sine);
colorAction.setColor(fadeColor);
actionManager.addAction(colorAction);
}
public void render (){
//...
actionManager.act(Gdx.graphics.getDeltaTime());
batch.setColor(fadeColor);
//...
}
代码示例来源:origin: stackoverflow.com
Actor fred = new Actor();
Actor tom = new VoiceActor();
Actor sally = new StuntActor();
fred.act();
tom.act();
sally.act();
代码示例来源:origin: narfman0/GDXWorld
final Node dummy = new Node(new Actor());
代码示例来源:origin: stackoverflow.com
private Actor fadeActor = new Actor();
private ShapeRenderer fadeRenderer;
代码示例来源:origin: Var3D/var3dframe
@Override
public void init() {
setBackground(game.getUI(new Actor()).setSize(getFullWidth(), getFullHeight()).getActor());
img_bg = game.getImage(getWidth() / 2, 1).touchOff().show(this);
lab_msg = game.getLabel("messge").setColor(Color.DARK_GRAY).touchOff().show(this);
lab_msg.setWrap(true);
lab_msg.setAlignment(Align.center);
lab_msg.setWidth(getWidth() / 2 - game.getDefaultFontSize());
lab_msg.setPosition(getWidth() / 2, getHeight() / 2, Align.center);
addListener(new ClickListener() {
public void clicked(InputEvent event, float x, float y) {
game.removeDialog(DialogMessge.this);
}
});
}
代码示例来源:origin: jsjolund/GdxDemo3D
rootTable.add(new Actor()).width(10).grow();
内容来源于网络,如有侵权,请联系作者删除!