Fix minor bug

master
John 2022-06-03 13:45:04 -04:00
parent ca97774204
commit 09efb37d40
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ public class GamePanel extends JPanel implements Runnable, KeyListener{
public GamePanel() throws IOException, SpriteException {
camera = new Camera(0);
background = new BackgroundImage(0, 0, backgroundImage, GAME_WIDTH, GAME_HEIGHT);
background = new BackgroundImage(0, 0, backgroundImage, GAME_WIDTH, GAME_HEIGHT, 10);
for (int i = 0; i < 11; i++) {
try {
BufferedImage sprite = getImage(String.format("img/walk/p1_walk%s.png", String.format("%1$2s", i+1).replace(' ', '0')));