Small Change

master
bob 2022-06-05 17:37:09 -04:00
parent f5b809473a
commit 5fec81cf0e
1 changed files with 2 additions and 3 deletions

View File

@ -112,9 +112,8 @@ public class GamePanel extends JPanel implements Runnable, KeyListener{
for(int i=0; i<map.size(); i++){
map.get(i).draw(g);
}
for (NonPlayer n: enemy) {
// this is a feature; the more enemies there are, the faster the enemies will (appear) to move
enemyFrameCounter += n.draw(g, enemyFrame);
for(int i=0; i<enemy.size(); i++){
enemy.get(i).draw(g, enemyFrame);
}
playerFrameCounter += player.draw(g, playerFrame);
g.drawString(camera.x+" "+map.get(0).x,100,100);