Пример #1
0
 public void drawGun(Gun gun, Graphics g) {
   g.drawImage(
       gun.getImage(),
       gun.getX(),
       gun.getY(),
       gun.getX() + 100,
       gun.getY() + 50,
       0,
       0,
       100,
       100,
       null);
 }