Fix minor bug
parent
ca97774204
commit
09efb37d40
|
@ -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')));
|
||||
|
|
Loading…
Reference in New Issue