Package game.layers

Source Code of game.layers.MainMenuGuiLayer

package game.layers;

import engine.geometry.Rectangle;
import engine.hierarchy.DefaultLayer;
import game.actors.KeyboardShortcutsActor;
import game.actors.mainmenu.OptionsButtonActor;
import game.actors.mainmenu.PlayButtonActor;

public final class MainMenuGuiLayer extends DefaultLayer {
    @Override
    public void onAdd() {
        addActor(new PlayButtonActor(new Rectangle(222, 228, 196, 64)));
        addActor(new OptionsButtonActor(new Rectangle(222, 304, 196, 64)));
        addActor(new KeyboardShortcutsActor());
    }
}
TOP

Related Classes of game.layers.MainMenuGuiLayer

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.