Package invaders101.interfaces

Examples of invaders101.interfaces.Drawable.draw()


        // ciclo que dibuja todas las entidades que tiene el juego
        for (int i = 0; i < entities.size(); i++) {
            if (entities.get(i) instanceof Drawable) {
                Drawable entity = (Drawable) entities.get(i);
                entity.draw(g);
            }
        }
        drawLives("sprites/life.png", SCREEN_HEIGHT, 550, g, lives);

        // Si está esperando que se presione una tecla
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.