136137138139140141142143144145146
entity.addBehavior(new Behavior() { @Override public void update() { if (entity.transform.position.y < -20.0f || isKeyDown(KEY_LCONTROL)) { entity.destroy(); numBlocks--; updateCounter(); } } });