Small Change
parent
f5b809473a
commit
5fec81cf0e
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue