docs: improve game loop

This commit is contained in:
Ilkka Seppälä
2024-04-22 20:42:57 +03:00
parent d6133e3bb0
commit b55e85f8de
2 changed files with 50 additions and 30 deletions
@@ -24,22 +24,19 @@
*/
package com.iluwatar.gameloop;
import lombok.Getter;
import lombok.Setter;
/**
* Bullet object class.
*/
public class Bullet {
@Getter
@Setter
private float position;
public Bullet() {
position = 0.0f;
}
public float getPosition() {
return position;
}
public void setPosition(float position) {
this.position = position;
}
}