INNER CODE UNIT · Java

getValue

BSVogler/WurfelEngineSDK · core/src/main/java/editor/BlockDrawable.java:85

	protected byte getValue() {
		return this.block.getValue();
	}

	@Override
	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;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…