INNER CODE UNIT · Java
draw
BSVogler/WurfelEngineSDK · core/src/main/java/editor/BlockDrawable.java:90
public void draw(Batch batch, float x, float y, float width, float height) {
if (block != null && block.getSpriteId() != 0) {
//block.setColor(new Color(1, 1, 1, 1));
block.resetLight();
block.render(
WE.getGameplay().getView(),
(int) (x+offsetX),//should be with -getLeftWidth() but then deos not align
(int) (y+offsetY)
);
}
}
private float offsetX;
/**
* Get the value of offstringX
*
* @return the value of offstringX