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++){
|
for(int i=0; i<map.size(); i++){
|
||||||
map.get(i).draw(g);
|
map.get(i).draw(g);
|
||||||
}
|
}
|
||||||
for (NonPlayer n: enemy) {
|
for(int i=0; i<enemy.size(); i++){
|
||||||
// this is a feature; the more enemies there are, the faster the enemies will (appear) to move
|
enemy.get(i).draw(g, enemyFrame);
|
||||||
enemyFrameCounter += n.draw(g, enemyFrame);
|
|
||||||
}
|
}
|
||||||
playerFrameCounter += player.draw(g, playerFrame);
|
playerFrameCounter += player.draw(g, playerFrame);
|
||||||
g.drawString(camera.x+" "+map.get(0).x,100,100);
|
g.drawString(camera.x+" "+map.get(0).x,100,100);
|
||||||
|
|
Loading…
Reference in New Issue