Package com.trevor.king.Snake.graphics

Examples of com.trevor.king.Snake.graphics.Splash


    public void splash() {
        GameState oldgs = gs;
        gs = GameState.SPLASH;
       
        Splash splash = new Splash("/splash.png", WIDTH, HEIGHT, screen, SPLASH_TIME);

        double startTime = System.currentTimeMillis();
        double currentTime = startTime;

        while (currentTime - startTime < SPLASH_TIME) {
            splash.update((int) ((currentTime - startTime)));
            render();
            currentTime = System.currentTimeMillis();
        }

        screen.clear();
View Full Code Here

TOP

Related Classes of com.trevor.king.Snake.graphics.Splash

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.