Space Invaders
Stage.java package interfaces; /** * * @author dansan */ public interface Stage { static final int ANCHO = 800; static final int ALTO = 600; static final int NIVELES = 5; } Escenario.java package spaceinvaders; import java.awt.Graphics2D; import java.awt.Image; import java.io.IOException; import java.util.logging.Level; import java.util.logging.Logger; import javax.imageio.ImageIO; /** * * @author dansan */ public class Escenario { Image imagen = null; Principal spaceInvaders; public Escenario(Principal spaceInvaders) { this.spaceInvaders = spaceInvaders; try { this.imagen = ImageIO.read(getClass().getClassLoader().getResource("recursos/oceano.gif")); } catch (IOException ex) { Logger.getLogger(Player.class.getName()).log(Level.SEVERE, null, ex); } } public void paint(Graphics2D g) { g.drawImage(imagen, 0, 0, spaceInvaders.getWidth(), spaceInvaders.g