Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
private void initSteps() {
.createAnimation(ocean.getY(), ocean.getY() - dipToPx(120))
.setListener(value -> ocean.setY(value));
.createAnimation(fishLeft.getX(), fishLeft.getX() + dipToPx(160))
.setListener(value -> fishLeft.setX(value));
.createAnimation(fishRight.getX(), fishRight.getX() - dipToPx(160))
.setListener(value -> fishRight.setX(value));
.createAnimation(fishLeftBottom.getY(), fishLeftBottom.getY() - screenDimensions.y / 2)
.setListener(value -> fishLeftBottom.setY(value));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.