Add second year

This commit is contained in:
2023-12-07 01:19:12 +00:00
parent 3291e5c79e
commit 3d12031ab8
1168 changed files with 431409 additions and 0 deletions

View File

@ -0,0 +1,15 @@
import java.awt.*;
import javax.swing.*;
public class PlayerBullet extends Sprite2D {
public PlayerBullet(Player player, Image image) {
super(image);
x = player.getX() + 54/2;
y = player.getY();
}
// method to move the bullet up each frame
public void move() {
y = y - 10;
}
}