Package interfaces

Examples of interfaces.Drawable


        g.fillRect(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT);

        // 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

Related Classes of interfaces.Drawable

Copyright © 2018 www.massapicom. 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.